-
Notifications
You must be signed in to change notification settings - Fork 481
Version 2.4.x is not compatible with net451 - version 2.3.x is #388
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
Comments
Minimum version for adopting .NET Standard 2.0 is .NET 4.6.1 Also Microsoft has dropped support for 4.5.1 now https://blogs.msdn.microsoft.com/dotnet/2015/12/09/support-ending-for-the-net-framework-4-4-5-and-4-5-1/ |
Hello, Could not install package 'CommandLineParser 2.4.3'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6.1', 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. |
what version of visual studio etc you running? .NET 4.6.1 is compatible with .NET Standard 2.0 libraries but I could imagine you getting that error if your Nuget is out of date or something. |
https://github.com/dotnet/cli/issues/6739 They mention in that problem there is a compatibility pack for .net standard 2.0 and VS 2015 |
I agree that the missing dependencies are why the package is being offered as an updated package. If minimum version is set the nuget will not offer it. It should be mentioned that once the dependency issue is fixed, you will have to go into nuget.org and remove the 2.4.x versions that are missing the dependency info. |
Hmmm, thats odd its missing at least the base dependency of NetStandard 2.0 I'll look into this |
Here's what I see when I downloaded the artifacts from the build server: Here's Nuget Package Explorer directly accessing the package from the Nuget.org feed: Here's what I see in VS2017: I find it amazing that the Nuget team is directly tying their Sorry, I'm not able to assist here... I do believe, as mentioned above, for VS2015 you'll need to install that compatibility pack as mentioned. We do have another "restore net45" issue #388 thread running, and a proposed PR #387 to deal with it. |
That being said above, theres a lot of code in the library that uses type reflection code (kinda important here) that appears to not work below 4.5.1 |
What about 4.6? Same problem with that .NET version |
Successfully installed this package after upgrading .Net framework from 4.5.2 to 4.6.2. Should the Readme be updated to read "Compatible with .NET Framework 4.6.x+"? |
When trying to add package version 2.4.x to my application, I get
NU1202: Package CommandLineParser 2.4.3 is not compatible with net451 (.NETFramework,Version=v4.5.1). Package CommandLineParser 2.4.3 supports: netstandard2.0 (.NETStandard,Version=v2.0)
Version 2.3.x works no problem.
The text was updated successfully, but these errors were encountered: