seesharper/LightInject

Could not install package 'LightInject.Source 6.1.0'

alandraper opened this issue · 3 comments

Trying to install LightInject source from NuGet into my .NetFramework project, and get the following message:

Could not install package 'LightInject.Source 6.1.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.7.2', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

We only support sdk style project files.
If you can come up with a simple repro, I'll take a look at it 👍

In Visual Studio 2019.

  1. File...New...Project
  2. Console App (.Net Framework)
  3. Click Next
  4. Framework is set to .NET Framework 4.7.2
  5. Click Create
  6. Install-Package LightInject.Source

Install-Package : Could not install package 'LightInject.Source 6.1.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.7.2', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

I was able to just clone the source from git and reference that in my project. But something's definitely incompatible with the nuget package.