59 lines
3.4 KiB
XML
59 lines
3.4 KiB
XML
<Project ToolsVersion="12.0" DefaultTargets="Build" InitialTargets="ValidateArgs" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<PropertyGroup>
|
|
<ProjectDir>$(MSBuildThisFileDirectory)</ProjectDir>
|
|
|
|
<!-- Output directories -->
|
|
<BinDir Condition="'$(BinDir)'==''">$(ProjectDir)bin/</BinDir>
|
|
<TestWorkingDir Condition="'$(TestWorkingDir)'==''">$(BinDir)tests/</TestWorkingDir>
|
|
<PackagesOutDir Condition="'$(PackagesOutDir)'==''">$(BinDir)packages/</PackagesOutDir>
|
|
|
|
<!-- Input Directories -->
|
|
<PackagesDir Condition="'$(PackagesDir)'==''">$(ProjectDir)packages/</PackagesDir>
|
|
<ToolRuntimePath Condition="'$(ToolRuntimePath)'==''">$(ProjectDir)Tools/</ToolRuntimePath>
|
|
<ToolsDir Condition="'$(UseToolRuntimeForToolsDir)'=='true'">$(ToolRuntimePath)</ToolsDir>
|
|
<ToolsDir Condition="'$(ToolsDir)'==''">$(ProjectDir)Tools/</ToolsDir>
|
|
<DotnetCliPath Condition="'$(DotnetCliPath)'==''">$(ToolRuntimePath)dotnetcli/bin/</DotnetCliPath>
|
|
<BuildToolsTaskDir Condition="'$(BuildToolsTargets45)' == 'true'">$(ToolsDir)net45/</BuildToolsTaskDir>
|
|
<UseRoslynCompilers Condition="'$(UseRoslynCompilers)'=='' and '$(OSEnvironment)'!='Windows_NT'">false</UseRoslynCompilers>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<BaseOutputPath Condition="'$(BaseOutputPath)'==''">$(BinDir)</BaseOutputPath>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<PackageOutputPath>$(PackagesOutDir)</PackageOutputPath>
|
|
<RuntimeIdGraphDefinitionFile>$(ProjectDir)packages\Microsoft.NETCore.Platforms\1.0.1-rc2-24008\runtime.json</RuntimeIdGraphDefinitionFile>
|
|
<PackageLicenseFile>$(ProjectDir)projects/dotnet_library_license.txt</PackageLicenseFile>
|
|
<PackageThirdPartyNoticesFile>$(ProjectDir)projects/ThirdPartyNotices.txt</PackageThirdPartyNoticesFile>
|
|
<PackageDescriptionFile>$(ProjectDir)projects/descriptions.json</PackageDescriptionFile>
|
|
<PackagePlatform Condition="'$(PackagePlatform)' == ''">$(Platform)</PackagePlatform>
|
|
<PackagePlatform Condition="'$(PackagePlatform)' == 'amd64'">x64</PackagePlatform>
|
|
</PropertyGroup>
|
|
|
|
<!-- Add required legal files to packages -->
|
|
<ItemGroup Condition="'$(MSBuildProjectExtension)' == '.pkgproj'">
|
|
<File Condition="Exists('$(PackageLicenseFile)')"
|
|
Include="$(PackageLicenseFile)" >
|
|
<SkipPackageFileCheck>true</SkipPackageFileCheck>
|
|
</File>
|
|
<File Condition="Exists('$(PackageThirdPartyNoticesFile)')"
|
|
Include="$(PackageThirdPartyNoticesFile)" >
|
|
<SkipPackageFileCheck>true</SkipPackageFileCheck>
|
|
</File>
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup>
|
|
<HostPolicyFullVersion>$(HostPolicyVersion)-$(PreReleaseLabel)-$(BuildNumberMajor)</HostPolicyFullVersion>
|
|
<HostResolverFullVersion>$(HostResolverVersion)-$(PreReleaseLabel)-$(BuildNumberMajor)</HostResolverFullVersion>
|
|
<HostFullVersion>$(HostVersion)-$(PreReleaseLabel)-$(BuildNumberMajor)</HostFullVersion>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="ValidateArgs" Condition="'$(CLIBuildVersion)'==''">
|
|
<Error Condition="$(HostPolicyVersion)==''" Text="HostPolicyVersion is undefined" />
|
|
<Error Condition="$(HostResolverVersion)==''" Text="HostResolverVersion is undefined" />
|
|
<Error Condition="$(HostVersion)==''" Text="HostVersion is undefined" />
|
|
<Error Condition="$(PreReleaseLabel)==''" Text="PreReleaseLabel is undefined" />
|
|
<Error Condition="$(BuildNumberMajor)==''" Text="BuildNumberMajor is undefined" />
|
|
</Target>
|
|
</Project>
|