diff --git a/build.cmd b/build.cmd index 4608fb43c..81838b333 100644 --- a/build.cmd +++ b/build.cmd @@ -335,12 +335,19 @@ if '%RestorePackages%' == 'true' ( .\.nuget\NuGet.exe restore packages.config -PackagesDirectory packages -ConfigFile .nuget\nuget.config @if ERRORLEVEL 1 echo Error: Nuget restore failed && goto :failure ) +if '%BUILD_PROTO_WITH_CORECLR_LKG%' == '1' ( + + :: Restore the Tools directory + call %~dp0init-tools.cmd +) + +set _dotnetexe=%~dp0Tools\dotnetcli\dotnet.exe + if '%BUILD_PROTO_WITH_CORECLR_LKG%' == '1' ( :: Restore the Tools directory call %~dp0init-tools.cmd - set _dotnetexe=%~dp0Tools\dotnetcli\dotnet.exe pushd .\lkg & %_dotnetexe% restore &popd @if ERRORLEVEL 1 echo Error: dotnet restore failed && goto :failure diff --git a/src/FSharpSource.targets b/src/FSharpSource.targets index 315cee7ac..6e436789a 100644 --- a/src/FSharpSource.targets +++ b/src/FSharpSource.targets @@ -742,7 +742,7 @@ - $(FSharpSourcesRoot)\..\lkg\FSharp-$(LkgVersion)\bin\Microsoft.FSharp.Targets + ..\lkg\FSharp-$(LkgVersion)\bin\Microsoft.FSharp.Targets $(FSharpSourcesRoot)\..\lkg\bin\Debug\netstandard1.6\win7-x64\publish $(FSharpSourcesRoot)\..\lkg\FSharp-$(LkgVersion)\bin $(FSLKGPath)\FSharp.Core.dll diff --git a/src/update.cmd b/src/update.cmd index e59662cbf..45e28d2f0 100644 --- a/src/update.cmd +++ b/src/update.cmd @@ -1,10 +1,9 @@ +@if "%_echo%"=="" echo off @rem =========================================================================================================== @rem Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the Apache License, @rem Version 2.0. See License.txt in the project root for license information. @rem =========================================================================================================== -@echo off -setlocal if /i "%1" == "debug" goto :ok if /i "%1" == "release" goto :ok