Browse Source

skip symbols switch on meta-package

Oren Novotny 9 years ago
parent
commit
1e6ac0d5f0
1 changed files with 11 additions and 2 deletions
  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