NuGet Projects (Nugetizer 3000)
Multiplatform Libraries for Code Sharing
- PDF for offline use
- Related Links:
Let us know how you feel about this
last updated: 2017-04
Automatically create NuGet packages to share code across platforms using the "Nugetizer 3000"!
Visual Studio for Mac 6.2 includes new functionality that can create NuGet packages from existing library projects, or by creating a new Multiplatform Library Project.
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.