Bootstrapping works!

This commit is contained in:
David Fowler 2015-10-16 16:25:54 -07:00
parent a5a0441a84
commit a75ea50b61

View file

@ -13,9 +13,6 @@ popd
set STAGE0_DIR=%REPOROOT%\artifacts\stage0
set STAGE1_DIR=%REPOROOT%\artifacts\stage1
set STAGE2_DIR=%REPOROOT%\artifacts\stage2
set RID=win7-x64
set OUTPUT_ROOT=%REPOROOT%\artifacts\%RID%
set DOTNET_CLR_HOSTS_PATH=%REPOROOT%\ext\CLRHost\%RID%
where dnvm >nul 2>nul
if %errorlevel% == 0 goto have_dnvm
@ -52,15 +49,15 @@ call %~dp0dnvm2 upgrade
if errorlevel 1 goto fail
echo Building stage1 dotnet.exe ...
dotnet --framework dnxcore50 --runtime %RID% --output "%STAGE1_DIR%" "%REPOROOT%\src\Microsoft.DotNet.Cli"
dotnet-publish --framework dnxcore50 --runtime win7-x64 --output "%STAGE1_DIR%" "%REPOROOT%\src\Microsoft.DotNet.Cli"
if errorlevel 1 goto fail
echo Building stage1 dotnet-compile.exe ...
dotnet --framework dnxcore50 --runtime %RID% --output "%STAGE1_DIR%" "%REPOROOT%\src\Microsoft.DotNet.Tools.Compiler"
dotnet-publish --framework dnxcore50 --runtime win7-x64 --output "%STAGE1_DIR%" "%REPOROOT%\src\Microsoft.DotNet.Tools.Compiler"
if errorlevel 1 goto fail
echo Building stage1 dotnet-publish.exe ...
dotnet --framework dnxcore50 --runtime %RID% --output "%STAGE1_DIR%" "%REPOROOT%\src\Microsoft.DotNet.Tools.Publish"
dotnet-publish --framework dnxcore50 --runtime win7-x64 --output "%STAGE1_DIR%" "%REPOROOT%\src\Microsoft.DotNet.Tools.Publish"
if errorlevel 1 goto fail
echo Re-building dotnet tools with the bootstrapped version
@ -69,19 +66,20 @@ set PATH=%STAGE1_DIR%;%PATH%
if exist %STAGE2_DIR% rd /s /q %STAGE2_DIR%
REM No longer need our special CoreConsole
set DOTNET_CLR_HOSTS_PATH=
REM This works around the coreconsole bug where the path to the exe can't be found
pushd
cd %STAGE1_DIR%
echo Building stage2 dotnet.exe ...
dotnet publish --framework dnxcore50 --runtime %RID% --output "%STAGE2_DIR%" "%REPOROOT%\src\Microsoft.DotNet.Cli"
dotnet publish --framework dnxcore50 --runtime win7-x64 --output "%STAGE2_DIR%" "%REPOROOT%\src\Microsoft.DotNet.Cli"
if errorlevel 1 goto fail
echo Building stage2 dotnet-compile.exe ...
dotnet publish --framework dnxcore50 --runtime %RID% --output "%STAGE2_DIR%" "%REPOROOT%\src\Microsoft.DotNet.Tools.Compiler"
dotnet publish --framework dnxcore50 --runtime win7-x64 --output "%STAGE2_DIR%" "%REPOROOT%\src\Microsoft.DotNet.Tools.Compiler"
if errorlevel 1 goto fail
echo Building stage2 dotnet-publish.exe ...
dotnet publish --framework dnxcore50 --runtime %RID% --output "%STAGE2_DIR%" "%REPOROOT%\src\Microsoft.DotNet.Tools.Publish"
dotnet publish --framework dnxcore50 --runtime win7-x64 --output "%STAGE2_DIR%" "%REPOROOT%\src\Microsoft.DotNet.Tools.Publish"
if errorlevel 1 goto fail
echo Bootstrapped dotnet to %STAGE2_DIR%
@ -93,4 +91,4 @@ goto end
echo Bootstrapping failed...
exit /B 1
:end
:end