# https://github.com/edymtt/nugetstandalone $destinationFolder = "$psscriptroot\packages" if ((Test-Path -path $destinationFolder)) { Remove-Item -Path $destinationFolder -Recurse | Out-Null } New-Item $destinationFolder -Type Directory | Out-Null nuget install packages.config -o $destinationFolder -ExcludeVersion