CLI
dotnet restore
Resolves dependencies and generates build metadata for a project. With the provided package-free offline fixture, use the reviewed config and installed reference packs. Other projects may need approved package sources.
Formal Syntax & Structure
csharp syntaxcsharp
dotnet restore --configfile <PATH>Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| --configfile | path | Explicit reviewed NuGet configuration file |
Working Example
Example Snippetcsharp
dotnet restore --configfile NuGet.Config