File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
src/Installer/redist-installer Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 8
8
[Parameter (Mandatory = $true )][string ]$NuspecFile ,
9
9
[Parameter (Mandatory = $true )][string ]$NupkgFile ,
10
10
[Parameter (Mandatory = $false )][string ]$Architecture ,
11
- [Parameter (Mandatory = $false )][string ]$MmVersion
11
+ [Parameter (Mandatory = $false )][string ]$MmVersion ,
12
+ [Parameter (Mandatory = $false )][switch ]$Symbols
12
13
)
13
14
14
15
[Net.ServicePointManager ]::SecurityProtocol = [Net.ServicePointManager ]::SecurityProtocol -bOR [Net.SecurityProtocolType ]::Tls12
@@ -40,5 +41,7 @@ if (Test-Path $NupkgFile) {
40
41
Remove-Item - Force $NupkgFile
41
42
}
42
43
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
44
47
Exit $LastExitCode
Original file line number Diff line number Diff line change 460
460
<!-- Include the swr file in the nuget package for VS authoring -->
461
461
<Copy SourceFiles =" $(SdkRuntimeAnalyzersSwrFile)" DestinationFolder =" $(RuntimeAnalyzersLayoutDirectory)" />
462
462
463
- <Exec Command =" powershell -NoProfile -NoLogo $(GenerateNupkgPowershellScript) ^
463
+ <Exec Command =" powershell -NoProfile -NoLogo $(GenerateNupkgPowershellScript) -Symbols ^
464
464
'$(ArtifactsDir)' ^
465
465
'$(RuntimeAnalyzersLayoutDirectory.TrimEnd('\'))' ^
466
466
'$(FullNugetVersion)' ^
You can’t perform that action at this time.
0 commit comments