Skip to content

Commit

Permalink
more fixes to protofx build
Browse files Browse the repository at this point in the history
  • Loading branch information
dsyme committed Jul 22, 2016
1 parent c257574 commit e5cfed0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
9 changes: 8 additions & 1 deletion build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/FSharpSource.targets
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@
<Choose>
<When Condition="Exists('$(FSharpSourcesRoot)\..\lkg\bin\Debug\netstandard1.6\win7-x64\publish\fsc.exe')">
<PropertyGroup >
<FSharpTargetsPath>$(FSharpSourcesRoot)\..\lkg\FSharp-$(LkgVersion)\bin\Microsoft.FSharp.Targets</FSharpTargetsPath>
<FSharpTargetsPath>..\lkg\FSharp-$(LkgVersion)\bin\Microsoft.FSharp.Targets</FSharpTargetsPath>
<FscToolPath>$(FSharpSourcesRoot)\..\lkg\bin\Debug\netstandard1.6\win7-x64\publish</FscToolPath>
<FSLKGPath>$(FSharpSourcesRoot)\..\lkg\FSharp-$(LkgVersion)\bin</FSLKGPath>
<FSCoreLKGPath>$(FSLKGPath)\FSharp.Core.dll</FSCoreLKGPath>
Expand Down
3 changes: 1 addition & 2 deletions src/update.cmd
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit e5cfed0

Please sign in to comment.