Browse Source

put nupkgs into artifacts dir

Oren Novotny 9 years ago
parent
commit
bfb2ebd2e7
2 changed files with 6 additions and 2 deletions
  1. 3 1
      Ix.NET/Source/build-new.ps1
  2. 3 1
      Rx.NET/Source/build-new.ps1

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

@@ -40,8 +40,10 @@ $nuspecDir = Join-Path $scriptPath "NuSpecs"
 Write-Host "Building Packages" -Foreground Green
 $nuspecs = ls $nuspecDir\*.nuspec | Select -ExpandProperty FullName
 
+New-Item -ItemType Directory -Force -Path .\artifacts
+
 foreach ($nuspec in $nuspecs) {
-   nuget pack $nuspec -Version $version -Properties "Configuration=$configuration"
+   .\nuget pack $nuspec -Version $version -Properties "Configuration=$configuration" -MinClientVersion 3.4 -outputdirectory .\artifacts
 }
 
 Write-Host "Running tests" -Foreground Green

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

@@ -40,8 +40,10 @@ $nuspecDir = Join-Path $scriptPath "NuSpecs"
 Write-Host "Building Packages" -Foreground Green
 $nuspecs = ls $nuspecDir\*.nuspec | Select -ExpandProperty FullName
 
+New-Item -ItemType Directory -Force -Path .\artifacts
+
 foreach ($nuspec in $nuspecs) {
-   nuget pack $nuspec -Version $version -Properties "Configuration=$configuration"
+   .\nuget pack $nuspec -Version $version -Properties "Configuration=$configuration" -MinClientVersion 3.4 -outputdirectory .\artifacts
 }
 
 Write-Host "Running tests" -Foreground Green