2016-06-17 23:16:09 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<Project ToolsVersion="14.0" DefaultTargets="BuildTheWholeCli" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2017-01-05 22:56:11 +00:00
|
|
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
|
2016-06-29 23:21:46 +00:00
|
|
|
<Import Project="build/Microsoft.DotNet.Cli.Monikers.props" />
|
2016-07-26 04:29:59 +00:00
|
|
|
|
2016-06-17 23:16:09 +00:00
|
|
|
<PropertyGroup>
|
|
|
|
<!--
|
|
|
|
$(OS) is set to Unix/Windows_NT. This comes from an environment variable on Windows and MSBuild on Unix.
|
|
|
|
-->
|
|
|
|
<PlatformScriptHost Condition=" '$(OS)' == 'Windows_NT' ">powershell -NoProfile -NoLogo -Command </PlatformScriptHost>
|
|
|
|
<PlatformScriptHost Condition=" '$(OS)' != 'Windows_NT' "></PlatformScriptHost>
|
|
|
|
|
|
|
|
<PlatformScriptExtension Condition=" '$(OS)' == 'Windows_NT' ">.ps1</PlatformScriptExtension>
|
2016-06-30 00:17:32 +00:00
|
|
|
<PlatformScriptExtension Condition=" '$(OS)' != 'Windows_NT' ">.sh</PlatformScriptExtension>
|
2016-06-17 23:16:09 +00:00
|
|
|
|
|
|
|
<CLITargets Condition=" '$(CLITargets)' == '' ">Prepare;Compile;Test;Package;Publish</CLITargets>
|
2016-06-27 18:45:51 +00:00
|
|
|
|
|
|
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
2016-07-01 00:34:11 +00:00
|
|
|
|
2017-01-04 21:27:41 +00:00
|
|
|
<CoreSetupChannel>release/1.1.0</CoreSetupChannel>
|
2016-07-01 00:34:11 +00:00
|
|
|
<SharedFrameworkName>Microsoft.NETCore.App</SharedFrameworkName>
|
2017-04-25 01:11:59 +00:00
|
|
|
<SharedFrameworkVersion>1.1.2</SharedFrameworkVersion>
|
2017-01-04 21:27:41 +00:00
|
|
|
<SharedHostVersion>1.1.0</SharedHostVersion>
|
2017-04-26 03:38:41 +00:00
|
|
|
<HostFxrContainerVersion>1.1.0</HostFxrContainerVersion>
|
2017-04-25 22:10:39 +00:00
|
|
|
<HostFxrVersion Condition=" '$(OS)' != 'Windows_NT' ">1.1.0</HostFxrVersion>
|
|
|
|
<HostFxrVersion Condition=" '$(OS)' == 'Windows_NT' ">1.1.2</HostFxrVersion>
|
2016-07-01 00:34:11 +00:00
|
|
|
|
2017-04-25 01:11:59 +00:00
|
|
|
<CoreCLRVersion>1.1.2</CoreCLRVersion>
|
|
|
|
<JitVersion>1.1.2</JitVersion>
|
2016-07-05 22:09:39 +00:00
|
|
|
|
|
|
|
<ExeExtension>.exe</ExeExtension>
|
|
|
|
<ExeExtension Condition=" '$(OS)' != 'Windows_NT' "></ExeExtension>
|
2016-07-26 04:29:59 +00:00
|
|
|
|
|
|
|
<Stage0Directory>$(RepoRoot)/.dotnet_stage0/$(Architecture)</Stage0Directory>
|
2016-11-03 06:01:57 +00:00
|
|
|
<Stage0PjDirectory>$(RepoRoot)/.dotnet_stage0PJ/$(Architecture)</Stage0PjDirectory>
|
2016-07-26 04:29:59 +00:00
|
|
|
<DotnetStage0>$(Stage0Directory)/dotnet$(ExeExtension)</DotnetStage0>
|
2016-07-19 21:01:02 +00:00
|
|
|
<DotnetCliBuildDirectory>$(RepoRoot)/build_projects/dotnet-cli-build</DotnetCliBuildDirectory>
|
2016-07-12 22:42:27 +00:00
|
|
|
<PackagesDir>$(RepoRoot)/.nuget</PackagesDir>
|
2016-06-17 23:16:09 +00:00
|
|
|
</PropertyGroup>
|
|
|
|
|
2016-06-27 18:45:51 +00:00
|
|
|
<ItemGroup>
|
2016-06-28 01:26:57 +00:00
|
|
|
<DotnetCliBuildFrameworkInputs Include="build_projects/**/*.cs" Exclude="build_projects/**/obj/**/*.cs" />
|
2016-10-14 01:09:30 +00:00
|
|
|
<DotnetCliBuildFrameworkInputs Include="build_projects/**/*.csproj" />
|
2016-06-27 18:45:51 +00:00
|
|
|
</ItemGroup>
|
2016-07-01 18:02:26 +00:00
|
|
|
|
|
|
|
<!-- Workaround to "Native image cannot be loaded multiple times" issue
|
|
|
|
A target in the top level file needs to run and invoke a task
|
2016-06-28 01:26:57 +00:00
|
|
|
https://github.com/Microsoft/msbuild/issues/750 -->
|
|
|
|
<Target Name="MSBuildWorkaroundTarget">
|
|
|
|
<Message Text="Dont remove this target" />
|
|
|
|
</Target>
|
2016-06-27 18:45:51 +00:00
|
|
|
|
2016-07-08 23:02:03 +00:00
|
|
|
<Target Name="BuildDotnetCliBuildFramework"
|
2016-08-09 18:05:00 +00:00
|
|
|
Inputs="@(DotnetCliBuildFrameworkInputs)"
|
|
|
|
Outputs="$(CLIBuildDll)"
|
2016-07-19 21:01:02 +00:00
|
|
|
DependsOnTargets="MSBuildWorkaroundTarget;
|
|
|
|
RestoreDotnetCliBuildFramework">
|
2016-07-05 22:09:39 +00:00
|
|
|
|
2017-01-04 21:27:41 +00:00
|
|
|
<Exec Command="$(DotnetStage0) publish -o $(DotnetCliBuildDirectory)/bin --framework netcoreapp1.1"
|
2016-11-03 06:01:57 +00:00
|
|
|
WorkingDirectory="$(DotnetCliBuildDirectory)"/>
|
2016-06-17 23:16:09 +00:00
|
|
|
</Target>
|
2016-10-14 01:09:30 +00:00
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
<RestoreDotnetCliBuildFrameworkOutputs Include="$(DotnetCliBuildDirectory)/obj/project.assets.json" />
|
|
|
|
<RestoreDotnetCliBuildFrameworkOutputs Include="$(DotnetCliBuildDirectory)/obj/dotnet-cli-build.csproj.nuget.g.props" />
|
|
|
|
<RestoreDotnetCliBuildFrameworkOutputs Include="$(DotnetCliBuildDirectory)/obj/dotnet-cli-build.csproj.nuget.g.targets" />
|
|
|
|
</ItemGroup>
|
|
|
|
|
2016-07-19 21:01:02 +00:00
|
|
|
<Target Name="RestoreDotnetCliBuildFramework"
|
2016-10-14 01:09:30 +00:00
|
|
|
Inputs="$(DotnetCliBuildDirectory)/dotnet-cli-build.csproj"
|
|
|
|
Outputs="@(RestoreDotnetCliBuildFrameworkOutputs)">
|
2016-07-19 21:01:02 +00:00
|
|
|
|
2016-10-27 04:34:27 +00:00
|
|
|
<PropertyGroup>
|
|
|
|
<ExtraRestoreArgs Condition="'$(OS)' != 'Windows_NT'">$(ExtraRestoreArgs) --disable-parallel</ExtraRestoreArgs>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2016-11-03 06:01:57 +00:00
|
|
|
<Exec Command="$(DotnetStage0) restore $(ExtraRestoreArgs)"
|
|
|
|
WorkingDirectory="$(DotnetCliBuildDirectory)"/>
|
2016-07-19 21:01:02 +00:00
|
|
|
</Target>
|
|
|
|
|
2016-06-24 18:06:13 +00:00
|
|
|
<Target DependsOnTargets="$(CLITargets)" Name="BuildTheWholeCli"></Target>
|
|
|
|
|
2016-06-28 02:09:30 +00:00
|
|
|
<Import Project="build/Microsoft.DotNet.Cli.Prepare.targets" />
|
2016-06-29 21:10:55 +00:00
|
|
|
<Import Project="build/Microsoft.DotNet.Cli.Compile.targets" />
|
2016-06-28 01:26:57 +00:00
|
|
|
<Import Project="build/Microsoft.DotNet.Cli.Package.targets" />
|
2016-07-26 04:29:59 +00:00
|
|
|
<Import Project="build/Microsoft.DotNet.Cli.Test.targets" />
|
2016-07-08 23:02:03 +00:00
|
|
|
<Import Project="build/Microsoft.DotNet.Cli.Publish.targets" />
|
2016-07-12 22:42:27 +00:00
|
|
|
<Import Project="build/Microsoft.DotNet.Cli.Run.targets" />
|
2016-06-28 01:26:57 +00:00
|
|
|
</Project>
|