Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit 60e5f4e

Browse files
authored
Symbols generation for common libraries (#391)
* Symbols packages for common libraries
1 parent 20e109e commit 60e5f4e

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

build.ps1

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,13 @@ Invoke-BuildStep 'Prepare NuGetCDNRedirect Package' { Prepare-NuGetCDNRedirect }
137137
-ev +BuildErrors
138138

139139
Invoke-BuildStep 'Creating artifacts' {
140+
# We need a few projects to be published for sharing the common bits with other repos.
141+
# We need symbols published for those, too. All other packages are deployment ones and
142+
# don't need to be shared, hence no need for symbols for them
143+
$ProjectsWithSymbols =
144+
"src/NuGet.Jobs.Common/NuGet.Jobs.Common.csproj",
145+
"src/Validation.Common.Job/Validation.Common.Job.csproj"
146+
140147
$Projects = `
141148
"src/Stats.CollectAzureCdnLogs/Stats.CollectAzureCdnLogs.csproj", `
142149
"src/Stats.AggregateCdnDownloadsInGallery/Stats.AggregateCdnDownloadsInGallery.csproj", `
@@ -158,12 +165,12 @@ Invoke-BuildStep 'Creating artifacts' {
158165
"src/NuGet.Services.Validation.Orchestrator/NuGet.Services.Validation.Orchestrator.csproj", `
159166
"src/Stats.CollectAzureChinaCDNLogs/Stats.CollectAzureChinaCDNLogs.csproj", `
160167
"src/Validation.PackageSigning.ProcessSignature/Validation.PackageSigning.ProcessSignature.csproj", `
161-
"src/Validation.PackageSigning.ValidateCertificate/Validation.PackageSigning.ValidateCertificate.csproj", `
162-
"src/NuGet.Jobs.Common/NuGet.Jobs.Common.csproj", `
163-
"src/Validation.Common.Job/Validation.Common.Job.csproj"
168+
"src/Validation.PackageSigning.ValidateCertificate/Validation.PackageSigning.ValidateCertificate.csproj" `
169+
+ $ProjectsWithSymbols
164170

165171
Foreach ($Project in $Projects) {
166-
New-Package (Join-Path $PSScriptRoot "$Project") -Configuration $Configuration -BuildNumber $BuildNumber -Version $SemanticVersion -Branch $Branch -MSBuildVersion "$msBuildVersion"
172+
$Symbols = $ProjectsWithSymbols -contains $Project;
173+
New-Package (Join-Path $PSScriptRoot "$Project") -Configuration $Configuration -BuildNumber $BuildNumber -Version $SemanticVersion -Branch $Branch -MSBuildVersion "$msBuildVersion" -Symbols:$Symbols
167174
}
168175
} `
169176
-ev +BuildErrors

0 commit comments

Comments
 (0)