@@ -6,7 +6,8 @@ if [%PACKAGES_DIR%]==[] set PACKAGES_DIR=%~dp0packages\
66if [%TOOLRUNTIME_DIR% ]== [] set TOOLRUNTIME_DIR = %~dp0 Tools
77set DOTNET_PATH = %TOOLRUNTIME_DIR% \dotnetcli\
88if [%DOTNET_CMD% ]== [] set DOTNET_CMD = %DOTNET_PATH% dotnet.exe
9- if [%BUILDTOOLS_SOURCE% ]== [] set BUILDTOOLS_SOURCE = https://dotnet.myget.org/F/dotnet-buildtools/api/v3/index.json
9+ if [%BUILDTOOLS_SOURCE% ]== [] set BUILDTOOLS_SOURCE = https://dotnetmygetlegacy.blob.core.windows.net/dotnet-core/index.json
10+ set MYGET_LEGACY_SOURCE = https://pkgs.dev.azure.com/dnceng/public/_packaging/myget-legacy/nuget/v3/index.json
1011set /P BUILDTOOLS_VERSION = < " %~dp0 BuildToolsVersion.txt"
1112set BUILD_TOOLS_PATH = %PACKAGES_DIR% Microsoft.DotNet.BuildTools\%BUILDTOOLS_VERSION% \lib\
1213set INIT_TOOLS_RESTORE_PROJECT = %~dp0 init-tools.msbuild
@@ -63,8 +64,8 @@ if NOT exist "%DOTNET_LOCAL_PATH%" (
6364
6465if exist " %BUILD_TOOLS_PATH% " goto :afterbuildtoolsrestore
6566echo Restoring BuildTools version %BUILDTOOLS_VERSION% ...
66- echo Running: " %DOTNET_CMD% " restore " %INIT_TOOLS_RESTORE_PROJECT% " --no-cache --packages %PACKAGES_DIR% --source " %BUILDTOOLS_SOURCE% " /p:BuildToolsPackageVersion=%BUILDTOOLS_VERSION% /p:ToolsDir=%TOOLRUNTIME_DIR% >> " %INIT_TOOLS_LOG% "
67- call " %DOTNET_CMD% " restore " %INIT_TOOLS_RESTORE_PROJECT% " --no-cache --packages %PACKAGES_DIR% --source " %BUILDTOOLS_SOURCE% " /p:BuildToolsPackageVersion=%BUILDTOOLS_VERSION% /p:ToolsDir=%TOOLRUNTIME_DIR% >> " %INIT_TOOLS_LOG% "
67+ echo Running: " %DOTNET_CMD% " restore " %INIT_TOOLS_RESTORE_PROJECT% " --no-cache --packages %PACKAGES_DIR% --source " %BUILDTOOLS_SOURCE% " --source " %MYGET_LEGACY_SOURCE% " /p:BuildToolsPackageVersion=%BUILDTOOLS_VERSION% /p:ToolsDir=%TOOLRUNTIME_DIR% >> " %INIT_TOOLS_LOG% "
68+ call " %DOTNET_CMD% " restore " %INIT_TOOLS_RESTORE_PROJECT% " --no-cache --packages %PACKAGES_DIR% --source " %BUILDTOOLS_SOURCE% " --source " %MYGET_LEGACY_SOURCE% " /p:BuildToolsPackageVersion=%BUILDTOOLS_VERSION% /p:ToolsDir=%TOOLRUNTIME_DIR% >> " %INIT_TOOLS_LOG% "
6869if NOT exist " %BUILD_TOOLS_PATH% init-tools.cmd" (
6970 echo ERROR: Could not restore build tools correctly. 1 >& 2
7071 goto :error
0 commit comments