d0100335da
Fixing the input path to the native compiler. It was adding /native to it before. Switching compile native to System.CommandLine for args parsing and removing quotes from -native.rsp. Fixing build_appdeps.cmd: Removed the * from __ApPDepSDK as xcopy does not honor that. In order to stay independent of the version of appDep, we CD into the appDepSDK and then navigate to the first folder we find, which should always be one, as we clear the folder before restoring appDep, after that we xcopy
31 lines
No EOL
756 B
Batchfile
31 lines
No EOL
756 B
Batchfile
@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%\src\Microsoft.DotNet.Tools.Compiler.Native\appdep
|
|
|
|
REM Get absolute path
|
|
pushd %1
|
|
set __OutputPath=%CD%\bin
|
|
popd
|
|
|
|
|
|
rmdir /S /Q %AppDepsProjectDir%\packages
|
|
|
|
pushd %__AppDepsProjectDir%
|
|
dotnet restore --packages %AppDepsProjectDir%\packages
|
|
set __AppDepSDK=%AppDepsProjectDir%\packages\toolchain*\
|
|
popd
|
|
|
|
mkdir %__OutputPath%\appdepsdk
|
|
cd %__AppDepSDK%
|
|
FOR /D %%a IN (*) DO (
|
|
CD %%a
|
|
GOTO :Copy
|
|
)
|
|
|
|
:Copy
|
|
xcopy /S/E/H/Y * %__OutputPath%\appdepsdk |