dotnet add package

Add or update a .NET package reference in a project file. More information: https://learn.microsoft.com/dotnet/core/tools/dotnet-add-package.

dotnet add package {{package}}

dotnet add {{path/to/file.csproj}} package {{package}}

dotnet add package {{package}} --version {{1.0.0}}

dotnet add package {{package}} --source {{https://api.nuget.org/v3/index.json}}

dotnet add package {{package}} --framework {{net7.0}}

dotnet add package {{package}} --package-directory {{path/to/directory}}