Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2a8bb92

Browse files
authored
Merge pull request #3986 from brettfo/tools-semaphore
ensure the expected dotnet CLI is actually present
2 parents0a8adb6 +37d02af commit2a8bb92

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎init-tools.cmd‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ if [%1]==[force] (
2626
ifexist"%PACKAGES_DIR%microsoft.dotnet.buildtools"rmdir /S /Q"%PACKAGES_DIR%microsoft.dotnet.buildtools"
2727
)
2828

29+
set /pDOTNET_TOOLS_VERSION=<"%~dp0DotnetCLIToolsVersion.txt"
30+
ifnotexist"%DOTNET_TOOLS_PATH%\sdk\%DOTNET_TOOLS_VERSION%" (
31+
:: dotnet cli doesn't yet exist, delete the semaphore
32+
del"%BUILD_TOOLS_SEMAPHORE%">NUL2>&1
33+
)
34+
2935
:: If sempahore exists do nothing
3036
ifexist"%BUILD_TOOLS_SEMAPHORE%" (
3137
echo Tools are already initialized.
@@ -44,7 +50,6 @@ if NOT exist "%PROJECT_JSON_PATH%" mkdir "%PROJECT_JSON_PATH%"
4450
echo%PROJECT_JSON_CONTENTS%>"%PROJECT_JSON_FILE%"
4551
echo Running%0>"%INIT_TOOLS_LOG%"
4652

47-
set /pDOTNET_TOOLS_VERSION=<"%~dp0DotnetCLIToolsVersion.txt"
4853
ifexist"%DOTNET_TOOLS_PATH%"goto :afterdotnettoolsrestore
4954

5055
echo Installing dotnet OLD VERSION OF THE cli...

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp