Skip to content

Commit acdf690

Browse files
committed
Fix path generation by removing trailing slashes from component path
1 parent 0f99fe5 commit acdf690

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

GenerateSingleSolution.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ if ($null -eq $componentPath -or $componentPath -eq '')
7474
$componentPath = $pwd
7575
}
7676

77+
# Remove trailing slash
78+
$componentPath = $componentPath.TrimEnd('\').TrimEnd('/')
79+
7780
# Component check
7881
# -----------------
7982

@@ -163,7 +166,7 @@ $projects = [System.Collections.ArrayList]::new()
163166
# Install slgnen
164167
dotnet tool restore
165168

166-
$generatedSolutionFilePath = "$componentPath/$componentName.sln"
169+
$generatedSolutionFilePath = "$componentPath\$componentName.sln"
167170
$platforms = '"Any CPU;x64;x86;ARM64"'
168171
$slngenConfig = "--folders true --collapsefolders true --ignoreMainProject"
169172

0 commit comments

Comments
 (0)