@@ -656,12 +656,6 @@ set _dotnet20exe=%~dp0Tools\dotnet20\dotnet.exe
656656set NUGET_PACKAGES = %~dp0 Packages
657657set path = %~dp0 Tools\dotnet20\;%path%
658658
659- if " %NEEDS_DOTNET_CLI_TOOLS% " == " 1" (
660- :: Restore projects using dotnet CLI tool
661- echo %_dotnet20exe% restore -v:d build-everything.proj%msbuildflags% %BUILD_DIAG%
662- %_dotnet20exe% restore -v:d build-everything.proj%msbuildflags% %BUILD_DIAG%
663- )
664-
665659echo ----------- Done with package restore, starting dependency uptake check -------------
666660
667661if not " %PB_PackageVersionPropsUrl% " == " " (
@@ -726,7 +720,14 @@ if "%BUILD_PROTO%" == "1" (
726720@ if ERRORLEVEL1 echo Error: NGen of proto failed&& goto :failure
727721)
728722
729- echo ---------------- Done with proto, starting build ------------------------
723+ if " %NEEDS_DOTNET_CLI_TOOLS% " == " 1" (
724+ echo ---------------- Done with proto, starting SDK restore ------------------------
725+ :: Restore projects using dotnet CLI tool
726+ echo %_dotnet20exe% restore -v:d build-everything.proj%msbuildflags% %BUILD_DIAG%
727+ %_dotnet20exe% restore -v:d build-everything.proj%msbuildflags% %BUILD_DIAG%
728+ )
729+
730+ echo ---------------- Done with SDK restore, starting build ------------------------
730731
731732if " %BUILD_PHASE% " == " 1" (
732733