In the previous chapter, we have already put the assembly in the
net40 subfolder of the
lib folder because it was designed for the .NET Framework 4.0. This automatically meant that our package could only be installed into projects targeting this or a newer framework version. As shown in Chapter 2, Package Management, NuGet packages can include multiple different versions of assemblies for different versions of the .NET Framework. We'll take a look at how to create such a package.
Let's start with the sample library from the previous chapter. We'll keep its current implementation that works only on the .NET Framework 4.0 and higher unchanged, but we'll create another version that will work with older versions of the .NET Framework ...