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-08-10 05:30:20 +00:00
|
|
|
<Import Project="Directory.Build.props" />
|
2016-07-26 04:29:59 +00:00
|
|
|
|
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-08-11 23:13:43 +00:00
|
|
|
<Exec Command="$(PreviousStageDotnet) publish --no-restore -o $(DotnetCliBuildDirectory)/bin --framework $(CliTargetFramework) /p:GeneratePropsFile=$(GeneratePropsFile)"
|
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>
|
2017-11-28 20:54:32 +00:00
|
|
|
|
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"
|
2017-11-28 20:54:32 +00:00
|
|
|
Outputs="@(RestoreDotnetCliBuildFrameworkOutputs)"
|
|
|
|
DependsOnTargets="WriteNugetConfigFile">
|
2016-07-19 21:01:02 +00:00
|
|
|
|
2016-10-27 04:34:27 +00:00
|
|
|
<PropertyGroup>
|
2017-03-08 19:10:53 +00:00
|
|
|
<ExtraRestoreArgs>$(ExtraRestoreArgs) /p:GeneratePropsFile=$(GeneratePropsFile)</ExtraRestoreArgs>
|
2016-10-27 04:34:27 +00:00
|
|
|
<ExtraRestoreArgs Condition="'$(OS)' != 'Windows_NT'">$(ExtraRestoreArgs) --disable-parallel</ExtraRestoreArgs>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2017-08-11 23:13:43 +00:00
|
|
|
<Exec Command="$(PreviousStageDotnet) restore $(ExtraRestoreArgs)"
|
2016-11-03 06:01:57 +00:00
|
|
|
WorkingDirectory="$(DotnetCliBuildDirectory)"/>
|
2016-07-19 21:01:02 +00:00
|
|
|
</Target>
|
|
|
|
|
2017-02-09 06:27:18 +00:00
|
|
|
<Target Name="BuildTheWholeCli" DependsOnTargets="$(CLITargets)" />
|
|
|
|
|
2017-12-01 20:39:51 +00:00
|
|
|
<Import Project="build/NugetConfigFile.targets" />
|
2017-02-14 23:42:13 +00:00
|
|
|
<Import Project="build/GitCommitInfo.targets" />
|
|
|
|
<Import Project="build/HostInfo.targets" />
|
2017-03-08 19:10:53 +00:00
|
|
|
<Import Project="build/BuildInfo.targets" />
|
2017-12-04 21:20:37 +00:00
|
|
|
<Import Project="build/DownloadPackageVersions.targets" />
|
2017-02-14 23:42:13 +00:00
|
|
|
<Import Project="build/Prepare.targets" />
|
|
|
|
<Import Project="build/Compile.targets" />
|
2017-09-14 20:33:46 +00:00
|
|
|
<Import Project="build/BuildAndPublishAllLinuxDistrosNativeInstallers.targets" />
|
2017-02-14 23:42:13 +00:00
|
|
|
<Import Project="build/Package.targets" />
|
|
|
|
<Import Project="build/Test.targets" />
|
|
|
|
<Import Project="build/Publish.targets" />
|
|
|
|
|
|
|
|
<Import Project="build/InitRepo.targets" />
|
2016-06-28 01:26:57 +00:00
|
|
|
</Project>
|