Public/Nuget/Get-NugetPath.ps1
function Get-NugetPath { [CmdletBinding()] param ( ) begin { } process { $nuget = "$PSScriptRoot\nuget.exe" if (!(Test-Path $nuget)) { $c = New-Object WebClient $c.DownloadFile("https://dist.nuget.org/win-x86-commandline/latest/nuget.exe", $nuget) $c.dispose() } $nuget } end { } } |