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

NameTypeDescription
--configfilepathExplicit reviewed NuGet configuration file

Working Example

Example Snippetcsharp
dotnet restore --configfile NuGet.Config
C# & .NET Reference