File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ function Get-NuGetPackageInfo {
15
15
try {
16
16
# Get the folder name as fallback (this is the package ID)
17
17
$packageId = Split-Path $ExtractedPath - Leaf
18
+ $isSymbols = $packageId.EndsWith (" .symbols" )
18
19
19
20
# Try to find the .nuspec file to get the version
20
21
$nuspecFile = Get-ChildItem - Path $ExtractedPath - Filter " *.nuspec" - Recurse | Select-Object - First 1
@@ -25,11 +26,18 @@ function Get-NuGetPackageInfo {
25
26
$version = $nuspec.package.metadata.version
26
27
27
28
# Return folder name based on whether version contains dash
28
- if ($version.Contains (' -' )) {
29
- return " $packageId -0.0.0-preview.0"
29
+ $folderName = if ($version.Contains (' -' )) {
30
+ " $packageId -0.0.0-preview.0"
30
31
} else {
31
- return " $packageId -0.0.0"
32
+ " $packageId -0.0.0"
32
33
}
34
+
35
+ # Append .symbols suffix for symbol packages
36
+ if ($isSymbols ) {
37
+ $folderName += " .symbols"
38
+ }
39
+
40
+ return $folderName
33
41
}
34
42
catch {
35
43
# If parsing fails, fall through
You can’t perform that action at this time.
0 commit comments