LightInject icon indicating copy to clipboard operation
LightInject copied to clipboard

Could not install package 'LightInject.Source 6.1.0'

Open alandraper opened this issue 5 years ago • 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.

alandraper avatar Sep 25 '19 15:09 alandraper

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

seesharper avatar Sep 25 '19 22:09 seesharper

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.

alandraper avatar Sep 25 '19 22:09 alandraper

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.

alandraper avatar Sep 27 '19 21:09 alandraper