2016-01-13 00:36:31 +00:00
|
|
|
REM TEMPORARILY disable @echo off to debug CI.
|
|
|
|
REM @echo off
|
2015-11-17 21:52:24 +00:00
|
|
|
|
|
|
|
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%\..\..
|
2015-11-18 07:42:27 +00:00
|
|
|
set __AppDepsProjectDir=%__RepoRoot%\src\Microsoft.DotNet.Tools.Compiler.Native\appdep
|
|
|
|
|
2015-11-17 21:52:24 +00:00
|
|
|
REM Get absolute path
|
|
|
|
pushd %1
|
|
|
|
set __OutputPath=%CD%\bin
|
|
|
|
popd
|
|
|
|
|
2015-11-18 19:56:35 +00:00
|
|
|
|
2015-11-17 21:52:24 +00:00
|
|
|
pushd %__AppDepsProjectDir%
|
2016-01-13 00:36:31 +00:00
|
|
|
rmdir /S /Q packages
|
|
|
|
dotnet restore --packages %__AppDepsProjectDir%\packages
|
|
|
|
set __AppDepSDK=%__AppDepsProjectDir%\packages\toolchain*\
|
2015-11-17 21:52:24 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
mkdir %__OutputPath%\appdepsdk
|
2015-11-18 19:56:35 +00:00
|
|
|
cd %__AppDepSDK%
|
|
|
|
FOR /D %%a IN (*) DO (
|
|
|
|
CD %%a
|
2016-01-13 00:36:31 +00:00
|
|
|
TREE
|
2015-11-18 19:56:35 +00:00
|
|
|
GOTO :Copy
|
|
|
|
)
|
|
|
|
|
|
|
|
:Copy
|
2016-01-13 00:36:31 +00:00
|
|
|
xcopy /S/E/H/Y * %__OutputPath%\appdepsdk
|