@@ -137,6 +137,13 @@ Invoke-BuildStep 'Prepare NuGetCDNRedirect Package' { Prepare-NuGetCDNRedirect }
137137 - ev + BuildErrors
138138
139139Invoke-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