Set EnableNuGetPackageRestore true for the process, to enable nuget restore. Also update nuget.exe to the latest

This commit is contained in:
andrewchaa
2015-05-01 10:34:53 +01:00
parent e99d9d42e4
commit bc378eab44
+2
View File
@@ -70,6 +70,8 @@ task Build -depends Clean {
Write-Host
Write-Host "Restoring"
[Environment]::SetEnvironmentVariable("EnableNuGetPackageRestore", "true", "Process")
exec { .\Tools\NuGet\NuGet.exe update -self }
exec { .\Tools\NuGet\NuGet.exe restore ".\Src\$name.sln" | Out-Default } "Error restoring $name"
Write-Host