Skip to content

Commit

Permalink
Add support for building signed&unsigned nugetgallery.core packages (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
skofman1 committed Oct 27, 2017
1 parent 4d8c2ec commit e359ad6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ param (
[switch]$CleanCache,
[string]$SimpleVersion = '1.0.0',
[string]$SemanticVersion = '1.0.0-zlocal',
[string]$PackageSuffix,
[string]$Branch,
[string]$CommitSHA,
[string]$BuildBranch = '37ff6e758c38b3f513af39f881399ce85f4ff20b'
Expand Down Expand Up @@ -84,12 +85,13 @@ Invoke-BuildStep 'Building solution' {
Build-Solution $Configuration $BuildNumber -MSBuildVersion "15" $SolutionPath -SkipRestore:$SkipRestore -MSBuildProperties "/p:MvcBuildViews=true" `
} `
-ev +BuildErrors

Invoke-BuildStep 'Creating artifacts' {
New-Package (Join-Path $PSScriptRoot "src\NuGetGallery.Core\NuGetGallery.Core.csproj") -Configuration $Configuration -Symbols -BuildNumber $BuildNumber -Version $SemanticVersion `
-ev +BuildErrors
}

Invoke-BuildStep 'Creating artifacts' {
$packageId = 'NuGetGallery.Core'+$PackageSuffix
New-Package (Join-Path $PSScriptRoot "src\NuGetGallery.Core\NuGetGallery.Core.csproj") -Configuration $Configuration -Symbols -BuildNumber $BuildNumber -Version $SemanticVersion -PackageId $packageId `
-ev +BuildErrors
}

Trace-Log ('-' * 60)

## Calculating Build time
Expand Down
2 changes: 1 addition & 1 deletion src/NuGetGallery.Core/NuGetGallery.Core.nuspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>$id$</id>
<id>$PackageId$</id>
<version>$version$</version>
<title>$title$</title>
<authors>$author$</authors>
Expand Down

0 comments on commit e359ad6

Please sign in to comment.