Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not install package 'LightInject.Source 6.1.0' #510

Open
alandraper opened this issue Sep 25, 2019 · 3 comments
Open

Could not install package 'LightInject.Source 6.1.0' #510

alandraper opened this issue Sep 25, 2019 · 3 comments

Comments

@alandraper
Copy link

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.

@seesharper
Copy link
Owner

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

@alandraper
Copy link
Author

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
Copy link
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants