Skip to content

Commit d4c62df

Browse files
authored
Publish symbols of RuntimeAnalyzers (#47598)
1 parent d3af530 commit d4c62df

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/Installer/redist-installer/packaging/windows/generatenupkg.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ param(
88
[Parameter(Mandatory=$true)][string]$NuspecFile,
99
[Parameter(Mandatory=$true)][string]$NupkgFile,
1010
[Parameter(Mandatory=$false)][string]$Architecture,
11-
[Parameter(Mandatory=$false)][string]$MmVersion
11+
[Parameter(Mandatory=$false)][string]$MmVersion,
12+
[Parameter(Mandatory=$false)][switch]$Symbols
1213
)
1314

1415
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bOR [Net.SecurityProtocolType]::Tls12
@@ -40,5 +41,7 @@ if (Test-Path $NupkgFile) {
4041
Remove-Item -Force $NupkgFile
4142
}
4243

43-
& $NuGetExe pack $NuspecFile -Version $NugetVersion -OutputDirectory $OutputDirectory -NoDefaultExcludes -NoPackageAnalysis -Properties PAYLOAD_FILES=$ContentPath`;ARCH=$Architecture`;MAJOR_MINOR=$MmVersion
44+
$symbolsArg = if ($Symbols) { "-Symbols" } else { "" }
45+
46+
& $NuGetExe pack $NuspecFile -Version $NugetVersion -OutputDirectory $OutputDirectory -NoDefaultExcludes -NoPackageAnalysis -Properties PAYLOAD_FILES=$ContentPath`;ARCH=$Architecture`;MAJOR_MINOR=$MmVersion $symbolsArg
4447
Exit $LastExitCode

src/Installer/redist-installer/targets/GenerateMSIs.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@
460460
<!-- Include the swr file in the nuget package for VS authoring -->
461461
<Copy SourceFiles="$(SdkRuntimeAnalyzersSwrFile)" DestinationFolder="$(RuntimeAnalyzersLayoutDirectory)" />
462462

463-
<Exec Command="powershell -NoProfile -NoLogo $(GenerateNupkgPowershellScript) ^
463+
<Exec Command="powershell -NoProfile -NoLogo $(GenerateNupkgPowershellScript) -Symbols ^
464464
'$(ArtifactsDir)' ^
465465
'$(RuntimeAnalyzersLayoutDirectory.TrimEnd('\'))' ^
466466
'$(FullNugetVersion)' ^

0 commit comments

Comments
 (0)