adamabdelhamed / PowerArgs

The ultimate .NET Standard command line argument parser
MIT License
568 stars 56 forks source link

Version 3.0.0 won't install in a .NET 4.6.1 project #128

Open ericjohannsen opened 6 years ago

ericjohannsen commented 6 years ago

Could not install package 'PowerArgs 3.0.0'. 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.

I was able to install version 2.8.1

jamesatgreymetis commented 6 years ago

I have also just hit this issue when trying to install PowerArgs 3.0.0 into a console app that targets .NET 4.6.1. Used the above workaround of installing 2.8.1.

The version of Visual Studio I'm using which I understand should work: Microsoft Visual Studio Professional 2015 Version 14.0.25431.01 Update 3 Microsoft .NET Framework Version 4.7.02556

Possible solution here: https://stackoverflow.com/questions/34991703/nuget-package-installation-failure.

adamabdelhamed commented 6 years ago

I'm pretty sure this is an issue with your IDE version. I can target 4.6.1 in VS 2017 (15.5.2) which leads me to believe there's nothing wrong with the DLL itself.

jamesatgreymetis commented 6 years ago

Confirmed that trying this with VS 2017 installed PowerArgs 3.0.0 into a console app that targets .NET 4.6.1.