소스 검색

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