We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02015bf commit f1731e4Copy full SHA for f1731e4
actions/dotnet-version-updater/upgrade-projects.ps1
@@ -24,6 +24,9 @@ foreach ($projectDir in $projects) {
24
Write-Host "Attempting to upgrade project: $projectDir"
25
Write-Host ""
26
27
+ # Normalize the project directory
28
+ $projectDir = [IO.Path]::GetFullPath($projectDir)
29
+
30
# Remove the git repository directory from the project directory
31
$relativePath = $projectDir.Replace($gitRepoDir, "")
32
@@ -37,9 +40,6 @@ foreach ($projectDir in $projects) {
37
40
# Create a new branch
38
41
git checkout -b $branch
39
42
- # Normalize the project directory
- $projectDir = [IO.Path]::GetFullPath($projectDir)
-
43
# Capture all output from the upgrade-assistant command
44
$output = upgrade-assistant upgrade "$projectDir" `
45
--non-interactive `
0 commit comments