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">
|
2016-06-29 23:21:46 +00:00
|
|
|
<Import Project="build/Microsoft.DotNet.Cli.Monikers.props" />
|
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
|
|
|
|
2016-06-24 18:06:13 +00:00
|
|
|
<NoRunArg Condition=" '$(OS)' == 'Windows_NT' ">-NoRun</NoRunArg>
|
|
|
|
<NoRunArg Condition=" '$(OS)' != 'Windows_NT' ">--norun</NoRunArg>
|
2016-06-29 21:10:55 +00:00
|
|
|
|
|
|
|
<CR>%0D</CR>
|
|
|
|
<LF>%0A</LF>
|
|
|
|
<NewLine Condition=" '$(OSName)' == 'win' ">$(LF)</NewLine>
|
|
|
|
<NewLine Condition=" '$(OSName)' != 'win' ">$(CR)$(LF)</NewLine>
|
2016-06-17 23:16:09 +00:00
|
|
|
|
|
|
|
<CLITargets Condition=" '$(CLITargets)' == '' ">Prepare;Compile;Test;Package;Publish</CLITargets>
|
2016-06-24 18:06:13 +00:00
|
|
|
<CLIBuildFileName>$(MSBuildThisFileDirectory)/build_projects/dotnet-cli-build/bin/dotnet-cli-build</CLIBuildFileName>
|
|
|
|
<CLIBuildDll>$(CLIBuildFileName).dll</CLIBuildDll>
|
2016-06-27 18:45:51 +00:00
|
|
|
|
|
|
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
|
|
<RepoRoot>$(MSBuildThisFileDirectory)</RepoRoot>
|
2016-06-28 02:09:30 +00:00
|
|
|
|
2016-06-29 07:41:38 +00:00
|
|
|
<CoreSetupChannel>preview</CoreSetupChannel>
|
2016-06-28 02:09:30 +00:00
|
|
|
<SharedFrameworkVersion>1.0.0</SharedFrameworkVersion>
|
|
|
|
<SharedHostVersion>1.0.1</SharedHostVersion>
|
|
|
|
<HostFxrVersion>1.0.1</HostFxrVersion>
|
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" />
|
|
|
|
<DotnetCliBuildFrameworkInputs Include="build_projects/**/project.json;build_projects/**/project.lock.json" />
|
2016-06-27 18:45:51 +00:00
|
|
|
</ItemGroup>
|
2016-06-28 01:26:57 +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
|
|
|
|
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
|
|
|
|
|
|
|
<Target Name="BuildDotnetCliBuildFramework"
|
|
|
|
Inputs="@(DotnetCliBuildFrameworkInputs)"
|
2016-06-28 01:26:57 +00:00
|
|
|
Outputs="$(CLIBuildDll)"
|
|
|
|
DependsOnTargets="MSBuildWorkaroundTarget">
|
2016-06-24 18:06:13 +00:00
|
|
|
<Exec Command="$(PlatformScriptHost) $(MSBuildThisFileDirectory)/build_projects/dotnet-cli-build/build$(PlatformScriptExtension) $(NoRunArg)" WorkingDirectory="$(MSBuildThisFileDirectory)"/>
|
2016-06-17 23:16:09 +00:00
|
|
|
</Target>
|
|
|
|
|
2016-06-24 18:06:13 +00:00
|
|
|
<Target DependsOnTargets="$(CLITargets)" Name="BuildTheWholeCli"></Target>
|
|
|
|
|
|
|
|
<UsingTask TaskName="TestTargets" AssemblyFile="$(CLIBuildDll)" />
|
|
|
|
<UsingTask TaskName="PublishTargets" AssemblyFile="$(CLIBuildDll)" />
|
2016-06-17 23:16:09 +00:00
|
|
|
|
|
|
|
<Target DependsOnTargets="BuildDotnetCliBuildFramework" Name="Test">
|
2016-06-24 18:06:13 +00:00
|
|
|
<TestTargets />
|
2016-06-17 23:16:09 +00:00
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target DependsOnTargets="BuildDotnetCliBuildFramework" Name="Publish">
|
2016-06-24 18:06:13 +00:00
|
|
|
<PublishTargets />
|
2016-06-17 23:16:09 +00:00
|
|
|
</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" />
|
|
|
|
</Project>
|