Dotnet-Compile-Native Windows Build Integration

This commit is contained in:
Bryan 2015-11-17 13:52:24 -08:00
parent c32b262eef
commit a2e26981f2
4 changed files with 26 additions and 0 deletions

View file

@ -33,6 +33,7 @@ PROJECTS=( \
Microsoft.DotNet.Tools.Repl.Csi \
Microsoft.DotNet.Tools.Resgen \
Microsoft.DotNet.Tools.Run \
Microsoft.DotNet.Tools.Compiler.Native \
)
BINARIES_FOR_COREHOST=( \

View file

@ -0,0 +1,21 @@
@echo off
REM This file encapsulates the temporary steps to build the dotnet-compile-native command successfully
REM The AppDepSDK package is a temporary artifact until we have CoreRT assemblies published to Nuget
set __ScriptDir=%~dp0
set __RepoRoot=%__ScriptDir%\..\..
set __AppDepsProjectDir=%__RepoRoot%\Microsoft.DotNet.Tools.Compiler.Native\appdep
REM Get absolute path
pushd %1
set __OutputPath=%CD%\bin
popd
pushd %__AppDepsProjectDir%
dotnet restore --packages %AppDepsProjectDir%\packages
set __AppDepSDK=%AppDepsProjectDir%\packages\toolchain*\*\
popd
mkdir %__OutputPath%\appdepsdk
xcopy /S/E/H/Y %__AppDepSDK% %__OutputPath%\appdepsdk

View file

View file

@ -94,6 +94,10 @@ Download it from https://www.cmake.org
# Copy in the dotnet-restore script
cp "$PSScriptRoot\dotnet-restore.cmd" "$Stage2Dir\bin\dotnet-restore.cmd"
# Copy in AppDeps
header "Acquiring Native App Dependencies"
cmd /c "$PSScriptRoot\build\build_appdeps.cmd" "$Stage2Dir"
# Smoke test stage2
$env:PATH = "$Stage2Dir\bin;$StartPath"
$env:DOTNET_HOME = "$Stage2Dir"