We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parenta7a6586 commit37d02afCopy full SHA for 37d02af
init-tools.cmd
@@ -26,6 +26,12 @@ if [%1]==[force] (
26
ifexist"%PACKAGES_DIR%microsoft.dotnet.buildtools"rmdir /S /Q"%PACKAGES_DIR%microsoft.dotnet.buildtools"
27
)
28
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
+
35
:: If sempahore exists do nothing
36
ifexist"%BUILD_TOOLS_SEMAPHORE%" (
37
echo Tools are already initialized.
@@ -44,7 +50,6 @@ if NOT exist "%PROJECT_JSON_PATH%" mkdir "%PROJECT_JSON_PATH%"
44
50
echo%PROJECT_JSON_CONTENTS%>"%PROJECT_JSON_FILE%"
45
51
echo Running%0>"%INIT_TOOLS_LOG%"
46
52
47
-set /pDOTNET_TOOLS_VERSION=<"%~dp0DotnetCLIToolsVersion.txt"
48
53
ifexist"%DOTNET_TOOLS_PATH%"goto :afterdotnettoolsrestore
49
54
55
echo Installing dotnet OLD VERSION OF THE cli...