Skip to content

Commit 38a0578

Browse files
committed
Change nuget temp path as $env:LOCALAPPDATA causes a problem for appveyor
1 parent 15e80ff commit 38a0578

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function VSX
200200

201201
function NugetPackageRestore
202202
{
203-
$nuget = Join-Path $env:LOCALAPPDATA .\nuget\NuGet.exe
203+
$nuget = Join-Path $WorkingDir .\nuget\NuGet.exe
204204
if(-not (Test-Path $nuget)) {
205205
Die "Please install nuget. More information available at: http://docs.nuget.org/docs/start-here/installing-nuget"
206206
}
@@ -213,7 +213,7 @@ function NugetPackageRestore
213213

214214
function Nupkg
215215
{
216-
$nuget = Join-Path $env:LOCALAPPDATA .\nuget\NuGet.exe
216+
$nuget = Join-Path $WorkingDir .\nuget\NuGet.exe
217217
if(-not (Test-Path $nuget)) {
218218
Die "Please install nuget. More information available at: http://docs.nuget.org/docs/start-here/installing-nuget"
219219
}
@@ -235,7 +235,7 @@ function Nupkg
235235

236236
function DownloadNuget()
237237
{
238-
$nuget = Join-Path $env:LOCALAPPDATA .\nuget\NuGet.exe
238+
$nuget = Join-Path $WorkingDir .\nuget\NuGet.exe
239239
if(-not (Test-Path $nuget))
240240
{
241241
$client = New-Object System.Net.WebClient;

0 commit comments

Comments
 (0)