Skip to content

Commit 1aa3e90

Browse files
committed
Refactor updateNuget.ps1 to use dotnet command directly for package updates
1 parent 8fc534d commit 1aa3e90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.vscode/updateNuget.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Get-ChildItem -Path . -Recurse -Include "*.csproj", "*.fsproj" | ForEach-Object
1616
# Only update stable versions (not prerelease versions containing -)
1717
if ($version -notmatch '-') {
1818
Write-Host "Updating package: $packageName"
19-
& "C:\Program Files\dotnet\dotnet.exe" add "$projFile" package "$packageName"
19+
dotnet add "$projFile" package "$packageName"
2020
}
2121
}
2222
}

0 commit comments

Comments
 (0)