2016-06-17 16:16:09 -07: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 14:56:11 -08:00
|
|
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
|
2016-07-26 00:29:59 -04:00
|
|
|
|
2016-06-27 11:45:51 -07:00
|
|
|
<ItemGroup>
|
2016-06-27 18:26:57 -07:00
|
|
|
<DotnetCliBuildFrameworkInputs Include="build_projects/**/*.cs" Exclude="build_projects/**/obj/**/*.cs" />
|
2016-10-13 18:09:30 -07:00
|
|
|
<DotnetCliBuildFrameworkInputs Include="build_projects/**/*.csproj" />
|
2016-06-27 11:45:51 -07:00
|
|
|
</ItemGroup>
|
2016-07-01 11:02:26 -07: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-27 18:26:57 -07:00
|
|
|
https://github.com/Microsoft/msbuild/issues/750 -->
|
|
|
|
<Target Name="MSBuildWorkaroundTarget">
|
|
|
|
<Message Text="Dont remove this target" />
|
|
|
|
</Target>
|
2016-06-27 11:45:51 -07:00
|
|
|
|
2016-07-08 16:02:03 -07:00
|
|
|
<Target Name="BuildDotnetCliBuildFramework"
|
2016-08-09 11:05:00 -07:00
|
|
|
Inputs="@(DotnetCliBuildFrameworkInputs)"
|
|
|
|
Outputs="$(CLIBuildDll)"
|
2016-07-19 17:01:02 -04:00
|
|
|
DependsOnTargets="MSBuildWorkaroundTarget;
|
|
|
|
RestoreDotnetCliBuildFramework">
|
2016-07-05 15:09:39 -07:00
|
|
|
|
2017-02-13 13:06:30 -08:00
|
|
|
<Exec Command="$(DotnetStage0) publish -o $(DotnetCliBuildDirectory)/bin --framework netcoreapp1.0 /p:GeneratingPropsFile=true"
|
2016-11-02 23:01:57 -07:00
|
|
|
WorkingDirectory="$(DotnetCliBuildDirectory)"/>
|
2016-06-17 16:16:09 -07:00
|
|
|
</Target>
|
2016-10-13 18:09:30 -07: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 17:01:02 -04:00
|
|
|
<Target Name="RestoreDotnetCliBuildFramework"
|
2016-10-13 18:09:30 -07:00
|
|
|
Inputs="$(DotnetCliBuildDirectory)/dotnet-cli-build.csproj"
|
|
|
|
Outputs="@(RestoreDotnetCliBuildFrameworkOutputs)">
|
2016-07-19 17:01:02 -04:00
|
|
|
|
2016-10-27 04:34:27 +00:00
|
|
|
<PropertyGroup>
|
2017-02-13 13:06:30 -08:00
|
|
|
<ExtraRestoreArgs Condition=" '$(GeneratingPropsFile)' == 'true' ">$(ExtraRestoreArgs) /p:GeneratingPropsFile=$(GeneratingPropsFile)</ExtraRestoreArgs>
|
2016-10-27 04:34:27 +00:00
|
|
|
<ExtraRestoreArgs Condition="'$(OS)' != 'Windows_NT'">$(ExtraRestoreArgs) --disable-parallel</ExtraRestoreArgs>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2016-11-02 23:01:57 -07:00
|
|
|
<Exec Command="$(DotnetStage0) restore $(ExtraRestoreArgs)"
|
|
|
|
WorkingDirectory="$(DotnetCliBuildDirectory)"/>
|
2016-07-19 17:01:02 -04:00
|
|
|
</Target>
|
|
|
|
|
2017-02-08 22:27:18 -08:00
|
|
|
<Target Name="BuildTheWholeCli" DependsOnTargets="$(CLITargets)" />
|
|
|
|
|
|
|
|
<Import Project="build/Microsoft.DotNet.Cli.GitCommitInfo.targets" />
|
|
|
|
<Import Project="build/Microsoft.DotNet.Cli.HostInfo.targets" />
|
|
|
|
<Import Project="build/Microsoft.DotNet.Cli.Prepare.targets" />
|
|
|
|
<Import Project="build/Microsoft.DotNet.Cli.Compile.targets" />
|
|
|
|
<Import Project="build/Microsoft.DotNet.Cli.Package.targets" />
|
|
|
|
<Import Project="build/Microsoft.DotNet.Cli.Test.targets" />
|
|
|
|
<Import Project="build/Microsoft.DotNet.Cli.Publish.targets" />
|
|
|
|
<Import Project="build/Microsoft.DotNet.Cli.Run.targets" />
|
|
|
|
|
2017-02-08 19:13:30 -08:00
|
|
|
<Import Project="build/Microsoft.DotNet.Cli.InitRepo.targets" />
|
2016-06-27 18:26:57 -07:00
|
|
|
</Project>
|