Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Specifying Nuget Package Platform Target

$
0
0

I want to create a Nuget Package for a C# library that targets .NET Framework 4.0 and higher.

If I put my library in a directory named Net40, will this cause issues for projects that target say 4.1 and higher?

Should i just publish my library in a lib folder without specifying the supported .NET Framework version? My library supports .NET Framework 4.0 and higher.

The reason why I am asking is that sometimes projects get messed up quickly when they target a different platform whilst the installed libraries via NuGet target another platform version. At least I want to avoid issues when developers target 4.0 and higher.

I hope your advice will be very helpful.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>