浏览代码

restore twice hack

Oren Novotny 8 年之前
父节点
当前提交
48f434ac7d
共有 2 个文件被更改,包括 6 次插入1 次删除
  1. 3 1
      Ix.NET/Source/build-new.ps1
  2. 3 0
      Rx.NET/Source/build-new.ps1

+ 3 - 1
Ix.NET/Source/build-new.ps1

@@ -45,7 +45,9 @@ New-Item -ItemType Directory -Force -Path $artifacts
 
 
 Write-Host "Restoring packages for $scriptPath\Ix.NET.sln" -Foreground Green
-.\nuget.exe restore "$scriptPath\Ix.NET.sln" 
+msbuild "$scriptPath\Ix.NET.sln" /m /t:restore /p:Configuration=$configuration 
+# Force a restore again to get proper version numbers https://github.com/NuGet/Home/issues/4337
+msbuild "$scriptPath\Ix.NET.sln" /m /t:restore /p:Configuration=$configuration 
 
 Write-Host "Building $scriptPath\Ix.NET.sln" -Foreground Green
 msbuild "$scriptPath\Ix.NET.sln" /m /t:build /p:Configuration=$configuration 

+ 3 - 0
Rx.NET/Source/build-new.ps1

@@ -48,6 +48,9 @@ New-Item -ItemType Directory -Force -Path $artifacts
 Write-Host "Restoring packages for $scriptPath\System.Reactive.sln" -Foreground Green
 msbuild "$scriptPath\System.Reactive.sln" /m /t:restore /p:Configuration=$configuration
 
+# Force a restore again to get proper version numbers https://github.com/NuGet/Home/issues/4337
+msbuild "$scriptPath\System.Reactive.sln" /m /t:restore /p:Configuration=$configuration
+
 Write-Host "Building $scriptPath\System.Reactive.sln" -Foreground Green
 msbuild "$scriptPath\System.Reactive.sln" /m /t:build /p:Configuration=$configuration