Creating a Sample Package

Let's start this chapter with creating a simple package that we'll deploy to the official NuGet package source. Feel free to create your own Visual Studio project containing code you wish to ship through the official NuGet package source, or use the project we'll create in this section. This section briefly covers creating a NuGet package. Refer to Chapter 3 for in-depth knowledge about creating NuGet packages.

Open Visual Studio, and create a new Class Library project titled ProNuGetStringExtensions, as shown in Figure 4-1.

images

Figure 4-1. Creating a sample class library project that will be published to the official ...

Get Pro NuGet now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.