summaryrefslogtreecommitdiff
path: root/dir.props
diff options
context:
space:
mode:
authorGaurav Khanna (CLR) <gaurav.khanna@microsoft.com>2016-02-04 16:22:06 -0800
committerGaurav Khanna <gkhanna@microsoft.com>2016-02-07 17:04:36 -0800
commitf025f9c678b7194d3b125d0cfa4f8c8e9d27beab (patch)
treec50d048043df804495a891ec8079a82a4319371f /dir.props
parent405eb72a0f442a96ec814fd2a9995925b3b0b1ee (diff)
downloadcoreclr-f025f9c678b7194d3b125d0cfa4f8c8e9d27beab.tar.gz
coreclr-f025f9c678b7194d3b125d0cfa4f8c8e9d27beab.tar.bz2
coreclr-f025f9c678b7194d3b125d0cfa4f8c8e9d27beab.zip
Change to support Microsoft.NetCore.Runtime.CoreCLR nuget package generation.
Diffstat (limited to 'dir.props')
-rw-r--r--dir.props34
1 files changed, 27 insertions, 7 deletions
diff --git a/dir.props b/dir.props
index 51fe6fcd56..d9aeee84f5 100644
--- a/dir.props
+++ b/dir.props
@@ -59,7 +59,7 @@
fails to write packages to it if the path contains the forward slash.
-->
<PackagesBinDir>$(__PackagesBinDir)</PackagesBinDir>
- <PackagesBinDir Condition="'$(__PackagesBinDir)'==''">$(BinDir).nuget</PackagesBinDir>
+ <PackagesBinDir Condition="'$(__PackagesBinDir)'==''">$(BinDir).nuget\</PackagesBinDir>
<ToolsDir Condition="'$(ToolsDir)'==''">$(ProjectDir)Tools/</ToolsDir>
<DotnetCliPath Condition="'$(DotnetCliPath)'==''">$(ToolsDir)dotnetcli/bin/</DotnetCliPath>
@@ -103,17 +103,11 @@
<!-- Setup Nuget properties -->
<ItemGroup>
- <NuSpecSrcs Include="$(SourceDir)\.nuget\Microsoft.DotNet.CoreCLR.nuspec" />
<NuSpecSrcs Include="$(SourceDir)\.nuget\toolchain.win7-x64.Microsoft.DotNet.RyuJit.nuspec" />
- <NuSpecSrcs Condition="'$(Configuration)'=='Release'" Include="$(SourceDir)\.nuget\Microsoft.DotNet.CoreCLR.Development.nuspec" />
- <NuSpecSrcs Condition="'$(Configuration)'=='Debug'" Include="$(SourceDir)\.nuget\Microsoft.DotNet.CoreCLR.Debug.Development.nuspec" />
</ItemGroup>
<ItemGroup>
<!-- Backslash appended, see note in dir.props about the PackagesBinDir property -->
- <NuSpecs Include="$(PackagesBinDir)\Microsoft.DotNet.CoreCLR.nuspec" />
<NuSpecs Include="$(PackagesBinDir)\toolchain.win7-x64.Microsoft.DotNet.RyuJit.nuspec" />
- <NuSpecs Condition="'$(Configuration)'=='Release'" Include="$(PackagesBinDir)\Microsoft.DotNet.CoreCLR.Development.nuspec" />
- <NuSpecs Condition="'$(Configuration)'=='Debug'" Include="$(PackagesBinDir)\Microsoft.DotNet.CoreCLR.Debug.Development.nuspec" />
</ItemGroup>
<!--
@@ -132,5 +126,31 @@
<TargetsWindows Condition="'$(BuildOS)' == 'Windows_NT'">true</TargetsWindows>
<TargetsUnix Condition="'$(TargetsFreeBSD)' == 'true' or '$(TargetsLinux)' == 'true' or '$(TargetsOSX)' == 'true'">true</TargetsUnix>
+
+ <!-- We are only tracking Linux Distributions for Nuget RID mapping -->
+ <DistroName Condition="'$(TargetsLinux)' == 'true'">$(__DistroName)</DistroName>
+
</PropertyGroup>
+
+ <!-- Packaging properties -->
+ <PropertyGroup>
+ <PreReleaseLabel>rc3</PreReleaseLabel>
+ <PackageDescriptionFile>$(SourceDir).nuget/descriptions.json</PackageDescriptionFile>
+ <PackageLicenseFile>$(SourceDir).nuget/dotnet_library_license.txt</PackageLicenseFile>
+ <PackageThirdPartyNoticesFile>$(SourceDir).nuget/ThirdPartyNotices.txt</PackageThirdPartyNoticesFile>
+
+ <!-- This should be kept in sync with package details in src/.nuget/init/project.json -->
+ <RuntimeIdGraphDefinitionFile>$(PackagesDir)/Microsoft.NETCore.Platforms/1.0.1-rc2-23712/runtime.json</RuntimeIdGraphDefinitionFile>
+
+ <!-- On Windows, MSbuild still runs against Desktop FX while it runs on .NET Core on non-Windows. this requires
+ pulling in different packaging dependencies.
+ -->
+ <PackagingTaskDir Condition="'$(TargetsWindows)' == 'true'">$(ToolsDir)net45/</PackagingTaskDir>
+ <BuildNumberMajor Condition="'$(BuildNumberMajor)' == ''">00001</BuildNumberMajor>
+ <!-- defined in buildtools packaging.targets, but we need this before targets are imported -->
+ <PackagePlatform Condition="'$(PackagePlatform)' == ''">$(BuildArch)</PackagePlatform>
+ <PackagePlatform Condition="'$(PackagePlatform)' == 'amd64'">x64</PackagePlatform>
+ <PackageOutputPath>$(PackagesBinDir)/pkg/</PackageOutputPath>
+ </PropertyGroup>
+
</Project>