3ab4a30eb8
- Move src\corehost\packaging to pkg\ directory. - Renamed PackageCoreHost to PackagePkgProjects and removed blocker - Updated copy of packages in PackagePkgProjects target to override (because there is no proper clean) - Update dir.props to match the package version for the runtime.json - Moved all CoreHost packages under Microsoft.NETCore.DotNetHost directory - Add the license files to the packages Add support for building Microsoft.NETCore.App meta-package - VersionNumber will be of form 1.0.0-rc2-<NETSTandard.Library build#>-<CLIbuild#> EX: 1.0.0-rc2-23931-002203
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-23931\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>
|