NuGet (PowerShell)

From vwiki
Revision as of 18:53, 19 September 2018 by Sstrutt (talk | contribs) (Updated for Modules)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

- NuGet PowerShell Repository =

In order to be able to install PowerShell modules from NuGet (https://www.nuget.org) for use within PowerShell you need to install the PS module source repository...

# Must be completed from an elevated administrator session
Register-PSRepository -Name NuGet -SourceLocation https://www.nuget.org/api/v2/

Packages can then be installed in the normal way, eg

Install-Module NReco.PdfGenerator


NuGet Package Repository

In order to be able to install packages from NuGet (https://www.nuget.org) for use within PowerShell you need to install the package source repository...

# Must be completed from an elevated administrator session
Register-PackageSource -Name NuGet -ProviderName NuGet -location https://www.nuget.org/api/v2/

Packages can then be installed in the normal way, eg

Install-Package NReco.PdfGenerator