Search code examples
nugetsquirrel.windows

NuGet Framework Targeting in Squirrel


I'm trying to better understand the proper use of .NET Framework version targeting in the project's NuSpec file, as relates to Squirrel.

For example:

<file src="bin\Release\*.dll" target="lib\net472\"></file>

Does the version specified here affect Squirrel's operations at all? Or is it a NuGet-specific construct only?

What does it mean when we say .NET 4.8 is now supported?


Solution

  • The behavior by NuGet is driven by the compatibility map of the frameworks. .NET Framework is mostly backwards compatible, so NuGet has built on top of that, when your package declares that it targets net472, net48 as the next evolution is acceptable. NuGet will allow this package to be consumed in .NET Framework 4.8 projects.

    See more for .NET Framework version compatibility.

    See more on cross platform targeting libraries, which talks about the multi targeting concept.