forked from dotnet/corert
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CoreRT build to use latest .NET CLI and build tools (dotnet#3916)
- Pick up latest .NET Core 2.0 CLI and buildtools - Remove all project.json references and convert everything to msbuild projects - Stick to vanilla .NET CLI project shape as much as possible. Minimize dependencies on buildtools special behaviors
- Loading branch information
Showing
127 changed files
with
1,016 additions
and
2,087 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.0.27-prerelease-01322-01 | ||
2.0.0-prerelease-01702-02 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.0.0-preview3-003223 | ||
2.0.0-preview1-005977 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<!-- NOTE: Leave this file here and keep it in sync with list in dir.props. --> | ||
<!-- The command-line doesn't need it, but the IDE does. --> | ||
<packageSources> | ||
<clear/> | ||
<add key="myget.org dotnet-buildtools" value="https://dotnet.myget.org/F/dotnet-buildtools/api/v3/index.json" /> | ||
<add key="myget.org dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" /> | ||
<add key="myget.org dotnet-corefxlab" value="https://dotnet.myget.org/F/dotnet-corefxlab/api/v3/index.json" /> | ||
<add key="myget.org dotnet-corert" value="https://dotnet.myget.org/F/dotnet-corert/api/v3/index.json" /> | ||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" /> | ||
</packageSources> | ||
<config> | ||
<add key="repositoryPath" value="..\packages" /> | ||
<add key="repositoryPath" value="packages" /> | ||
</config> | ||
<packageRestore> | ||
<!-- Automated package restore in VS does not work at this time with | ||
this project and it causes build failures in VS. Disable it. --> | ||
<add key="automatic" value="false" /> | ||
</packageRestore> | ||
<!-- Don't use any higher level config files. | ||
Our builds need to be isolated from user/machine state --> | ||
<fallbackPackageFolders> | ||
<clear /> | ||
</fallbackPackageFolders> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,22 @@ | ||
<Project DefaultTargets="BuildAndTest" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="dir.props" /> | ||
|
||
<!-- The following properties are in place to keep the behavior of build.cmd while we work on the dev workflow steps. --> | ||
<!-- required to build the projects in their specified order --> | ||
<PropertyGroup> | ||
<!-- To disable the restoration of packages, set RestoreDuringBuild=false or pass /p:RestoreDuringBuild=false.--> | ||
<RestoreDuringBuild Condition="'$(RestoreDuringBuild)'==''">true</RestoreDuringBuild> | ||
<SerializeProjects>true</SerializeProjects> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<GenerateCodeCoverageReportForAll>true</GenerateCodeCoverageReportForAll> | ||
</PropertyGroup> | ||
<Import Project="$(ToolsDir)CodeCoverage.targets" Condition="Exists('$(ToolsDir)CodeCoverage.targets')" /> | ||
<Import Project="$(ToolsDir)PerfTesting.targets" Condition="Exists('$(ToolsDir)PerfTesting.targets') and '$(Performance)' == 'true'"/> | ||
<Import Project="$(ToolsDir)VersionTools.targets" Condition="Exists('$(ToolsDir)VersionTools.targets')" /> | ||
|
||
<ItemGroup> | ||
<Project Include="src\Common\test-runtime\XUnit.Runtime.depproj" /> | ||
<Project Include="src\dirs.proj" /> | ||
</ItemGroup> | ||
|
||
<Import Project="dir.targets" /> | ||
|
||
<Import Project="dir.traversal.targets" /> | ||
|
||
<PropertyGroup Condition="'$(RestoreDuringBuild)'=='true'"> | ||
<TraversalBuildDependsOn> | ||
BatchRestorePackages; | ||
$(TraversalBuildDependsOn); | ||
</TraversalBuildDependsOn> | ||
</PropertyGroup> | ||
|
||
<Target Name="BatchRestorePackages"> | ||
<MakeDir Directories="$(PackagesDir)" Condition="!Exists('$(PackagesDir)')" /> | ||
|
||
<Message Importance="High" Text="[$([System.DateTime]::Now.ToString('HH:mm:ss.ff'))] Restoring all packages..." /> | ||
|
||
<Exec Command="$(DnuRestoreCommand) @(DnuRestoreDir->'"%(Identity)"', ' ')" | ||
StandardOutputImportance="Low" | ||
CustomErrorRegularExpression="(^Unable to locate .*)|(^Updating the invalid lock file with .*)" | ||
ContinueOnError="ErrorAndContinue" /> | ||
|
||
<Message Importance="High" Text="[$([System.DateTime]::Now.ToString('HH:mm:ss.ff'))] Restoring all packages...Done." /> | ||
</Target> | ||
|
||
<!-- Override RestorePackages from dir.traversal.targets and do a batch restore --> | ||
<Target Name="RestorePackages" DependsOnTargets="BatchRestorePackages" /> | ||
|
||
<!-- Override clean from dir.traversal.targets and just remove the full BinDir unless build.[cmd|sh] has already done the cleaning --> | ||
<Target Name="Clean"> | ||
<RemoveDir Condition="'$(CleanedTheBuild)' != '1'" Directories="$(ObjDir)" /> | ||
</Target> | ||
<Import Project="$(ToolsDir)clean.targets" /> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
@if not defined _echo @echo off | ||
setlocal EnableDelayedExpansion | ||
|
||
set __ThisScriptShort=%0 | ||
|
||
if /i "%1" == "/?" goto HelpVarCall | ||
if /i "%1" == "-?" goto HelpVarCall | ||
if /i "%1" == "/h" goto HelpVarCall | ||
if /i "%1" == "-h" goto HelpVarCall | ||
if /i "%1" == "/help" goto HelpVarCall | ||
if /i "%1" == "-help" goto HelpVarCall | ||
|
||
if defined BUILDVARS_DONE goto :AfterVarSetup | ||
|
||
goto :NormalVarCall | ||
|
||
:HelpVarCall | ||
call %~dp0buildvars-setup.cmd -help | ||
exit /b 1 | ||
|
||
:NormalVarCall | ||
call %~dp0buildvars-setup.cmd %* | ||
|
||
IF NOT ERRORLEVEL 1 goto AfterVarSetup | ||
echo Setting build variables failed. | ||
exit /b %ERRORLEVEL% | ||
|
||
:AfterVarSetup | ||
|
||
:: Restore the Tools directory | ||
call "%__ProjectDir%\init-tools.cmd" | ||
|
||
"%__DotNetCliPath%\dotnet.exe" msbuild "%__ProjectDir%\build.proj" /nologo /t:Restore /flp:v=normal;LogFile=build-restore.log /p:NuPkgRid=win7-x64 /maxcpucount /p:OSGroup=%__BuildOS% /p:Configuration=%__BuildType% /p:Platform=%__BuildArch% %__ExtraMsBuildParams% | ||
IF ERRORLEVEL 1 goto ErrorExit | ||
|
||
rem Buildtools tooling is not capable of publishing netcoreapp currently. Use helper projects to publish skeleton of | ||
rem the standalone app that the build injects actual binaries into later. | ||
"%__DotNetCliPath%\dotnet.exe" restore "%__SourceDir%\ILCompiler\netcoreapp\ilc.csproj" -r win7-x64 | ||
IF ERRORLEVEL 1 goto ErrorExit | ||
"%__DotNetCliPath%\dotnet.exe" publish "%__SourceDir%\ILCompiler\netcoreapp\ilc.csproj" -r win7-x64 -o "%__RootBinDir%\%__BuildOS%.%__BuildArch%.%__BuildType%\tools" | ||
IF ERRORLEVEL 1 goto ErrorExit | ||
|
||
exit /b 0 | ||
|
||
:ErrorExit | ||
exit /b 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<RyuJITVersion>2.1.0-preview1-25412-03</RyuJITVersion> | ||
<ObjectWriterVersion>1.0.19-prerelease-00001</ObjectWriterVersion> | ||
<CoreFXVersion>4.5.0-preview1-25417-02</CoreFXVersion> | ||
<MicrosoftNETCoreNativeVersion>2.0.0-beta-25021-03</MicrosoftNETCoreNativeVersion> | ||
<MicrosoftNETCoreAppPackageVersion>2.0.0-preview2-25312-01</MicrosoftNETCoreAppPackageVersion> | ||
<XunitNetcoreExtensionsVersion>1.0.1-prerelease-01616-05</XunitNetcoreExtensionsVersion> | ||
</PropertyGroup> | ||
</Project> |
Oops, something went wrong.