Skip to content

Commit 751efb3

Browse files
committed
Let's just always run dotnet tool restore
1 parent cd854dd commit 751efb3

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

_Bootstrap.ps1

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,8 @@ if (Test-Path $ProjectFile) {
6262
dotnet restore $ProjectFile --ucr
6363
}
6464

65-
# If there is a dotnet-tools.json file, restore the tools
66-
if (Join-Path $pwd .config dotnet-tools.json | Test-Path) {
67-
Write-Information "Restore dotnet tools"
68-
if (Test-Path $ToolsFile) {
69-
dotnet tool restore --tool-manifest $ToolsFile
70-
}
71-
}
65+
Write-Information "Restore dotnet tools"
66+
dotnet tool restore --tool-manifest $ToolsFile
7267

7368
# Regardless of whether you have a dotnet-tools.json file, we need gitversion global tool
7469
# dotnet 8+ can "list" tool names, but this old syntax still works:

0 commit comments

Comments
 (0)