Neste artigo

Quickstart: Install and use a package using the dotnet CLI

Neste artigo

NuGet packages contain reusable code that other developers make available to you for use in your projects. See What is NuGet? for background. Packages are installed into a .NET Core project using the dotnet add package command as described in this article for the popular Newtonsoft.Json package.

Once installed, refer to the package in code with using <namespace> where <namespace> is specific to the package you're using. You can then use the package's API.

Tip

Start with nuget.org: Browsing nuget.org is how .NET developers typically find components they can reuse in their own applications. You can search nuget.org directly or find and install packages within Visual Studio as shown in this article.