< Back

Restore-NuGetPackage

Sat Jan 18, 2020 6:45 pm

NAME Restore-NuGetPackage



SYNOPSIS

A thin wrapper for "NuGet.exe restore [...]". See https://docs.microsoft.com/en-us/nuget/ ... ef-restore.





SYNTAX

Restore-NuGetPackage [[-NuGetExePath] <String>] [[-SolutionDirectory] <String>] [[-OutputDirectory] <String>]

[[-ConfigFile] <String>] [-NoCache] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-NuGetExePath <String>

Path to NuGet.exe. Defaults to "<current directory>\\.pentia\\nuget.exe".



Required? false

Position? 1

Default value (Get-NuGetPath)

Accept pipeline input? false

Accept wildcard characters? false



-SolutionDirectory <String>

Specifies the solution folder. Not valid when restoring packages for a solution.



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-OutputDirectory <String>

Specifies the folder in which packages are installed. If no folder is specified, the current folder is used.



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ConfigFile <String>

The NuGet configuration file to apply. If not specified, %AppData%\\NuGet\\NuGet.Config is used.



Required? false

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-NoCache [<SwitchParameter>]

Prevents NuGet from using packages from local machine caches.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS





RELATED LINKS