File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ Describe 'Publish' {
1010 throw " No NuGet package found in src/Sentry/bin/Release."
1111 }
1212
13- $tempDir = Join-Path ([System.IO.Path ]::GetTempPath()) ([System.IO.Path ]::GetRandomFileName())
13+ $tempDir = Resolve-Path ([System.IO.Path ]::GetTempPath())
14+ $tempDir = Join-Path $tempDir ([System.IO.Path ]::GetRandomFileName())
1415 New-Item - ItemType Directory - Path $tempDir - Force | Out-Null
1516 Set-Location $tempDir
1617 Write-Host " Testing $package in $tempDir "
@@ -21,6 +22,7 @@ Describe 'Publish' {
2122 Copy-Item $package $localPackages
2223 $localConfig = Join-Path $tempDir " nuget.config"
2324 Copy-Item $PSScriptRoot / nuget.config $localConfig
25+ (Get-Content $localConfig ) -replace ' \./packages' , $localPackages | Set-Content $localConfig
2426 $env: NUGET_PACKAGES = Join-Path $tempDir " nuget"
2527 New-Item - ItemType Directory - Path $env: NUGET_PACKAGES - Force | Out-Null
2628 dotnet nuget list source | Write-Host
You can’t perform that action at this time.
0 commit comments