NuGet Multiplatform Library Projects (Nugetizer 3000)
Automatically create NuGet packages to share code across platforms using the 'Nugetizer 3000'!
It is possible to automatically create NuGet packages to share code across platforms using the Nugetizer 3000. This makes is possible to create NuGet packages from existing library projects or by creating a new Multiplatform Library Project.
The Nugetizer 3000 is included with Visual Studio for Mac – look for the Library > Mulitplatform Library project type in the File > New window:
Building NuGet packages
Once configured, every build of the project outputs a complete NuGet package, which can be used to share code internally with other apps or uploaded to NuGet.org.
There are three scenarios for using this feature:
Create a NuGet package from existing PCL (or .NET Standard) projects.
Create a new library to share common code via NuGet, using a PCL or .NET Standard.
Create a new library and NuGet that includes platform-specific code for iOS and Android, and uses a Shared Project to contain the common code and platform-specific projects to support iOS- or Android-specific functionality.
Refer to the Metadata guide for details on the required and optional metadata that must be added to any NuGet package.
Further NuGet information
Microsoft's NuGet Documentation contains more detailed information on the .nupkg format and using NuGet packages in Visual Studio.
The design discussion for NuGet Package Projects (a.k.a. NuGetizer 3000) is available on the NuGet GitHub repository.