浏览代码

skip symbols switch on meta-package

Oren Novotny 9 年之前
父节点
当前提交
1e6ac0d5f0
共有 1 个文件被更改,包括 11 次插入2 次删除
  1. 11 2
      Rx.NET/Source/build-new.ps1

+ 11 - 2
Rx.NET/Source/build-new.ps1

@@ -66,8 +66,17 @@ $nuspecs = ls $nuspecDir\*.nuspec | Select -ExpandProperty FullName
 
 New-Item -ItemType Directory -Force -Path .\artifacts
 
-foreach ($nuspec in $nuspecs) {
-   .\nuget pack $nuspec -symbols -Version $version -Properties "Configuration=$configuration" -MinClientVersion 2.8.6 -outputdirectory .\artifacts
+foreach ($nuspec in $nuspecs) 
+{
+  $symbolSwitch = "-symbols"
+  
+  # nuget will error if we pass -symbols to the meta-package
+  if($nuSpec -like "*\System.Reactive.nuspec")
+  {  
+    $symbolSwitch = ""
+  }
+   
+   .\nuget pack $nuspec $symbolSwitch -Version $version -Properties "Configuration=$configuration" -MinClientVersion 2.8.6 -outputdirectory .\artifacts
 }
 
 Write-Host "Running tests" -Foreground Green