fclp / fluent-command-line-parser

A simple, strongly typed .NET C# command line parser library using a fluent easy to use interface
Other
530 stars 85 forks source link

Not compatible with .NET6 #118

Open sonicmouse opened 1 year ago

sonicmouse commented 1 year ago

This looks like a lovely commandline processor, but I can't use it as it raises a warning in my project:

Warning NU1701 Package 'FluentCommandLineParser 1.4.3' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net6.0'. This package may not be fully compatible with your project. I simply cannot have a dependency on the .NET Framework.

Easy enough to reproduce, just start a new .NET6 console application and add the nuget package. I even tried the latest pre-release (1.5.0.20-commands) and it's still throwing that warning.

MagicAndre1981 commented 8 months ago

use this .net standard version:

<PackageReference Include="FluentCommandLineParser.NETStandard" Version="1.5.0.31-commands" />