From e5cfed06db466630606b64b70798b15cea7cfe46 Mon Sep 17 00:00:00 2001 From: Don Syme Date: Sat, 23 Jul 2016 00:58:15 +0100 Subject: [PATCH] more fixes to protofx build --- build.cmd | 9 ++++++++- src/FSharpSource.targets | 2 +- src/update.cmd | 3 +-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/build.cmd b/build.cmd index 4608fb43cb8..81838b33324 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 315cee7ac13..6e436789aeb 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 e59662cbf34..45e28d2f0b6 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