O'Reilly logo

NuGet 2 Essentials by Dejan Dakić, Damir Arh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Multiplatform support

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required