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}} {{[-v|--version]}} {{1.0.0}}

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

dotnet add package {{package}} {{[-f|--framework]}} {{net7.0}}

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