NuGet is the official package manager for the .NET ecosystem, built by Microsoft and the .NET Foundation and distributed free and open-source. It ranks #13 among dev tools in usage surveys at roughly 18.9% share. It's built directly into Visual Studio, JetBrains Rider, and the dotnet CLI, making it the standard way C#/.NET (and F#/VB.NET) projects declare, restore, and update their library dependencies.
Add a package from the CLI, which both installs it and records a PackageReference in the project's .csproj file.
# add a package to the current project
dotnet add package Newtonsoft.Json
# restore all packages listed in the project file
dotnet restore
<!-- MyApp.csproj -->
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>
</Project>
NuGet ships bundled with the .NET SDK โ no separate install is needed once the SDK is on the machine.
# install the .NET SDK (includes NuGet), e.g. on Windows via winget
winget install Microsoft.DotNet.SDK.8
# verify NuGet/dotnet is available
dotnet --version