summaryrefslogtreecommitdiff
path: root/src/.nuget/dir.props
diff options
context:
space:
mode:
Diffstat (limited to 'src/.nuget/dir.props')
-rw-r--r--src/.nuget/dir.props6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/.nuget/dir.props b/src/.nuget/dir.props
index 6f9e29cf27..082242ac53 100644
--- a/src/.nuget/dir.props
+++ b/src/.nuget/dir.props
@@ -73,16 +73,22 @@
<When Condition="'$(_runtimeOSFamily)' == 'osx'">
<PropertyGroup>
<PackageRID>osx.10.12-$(ArchGroup)</PackageRID>
+ <!-- Set the platform part of the RID if we are doing a portable build -->
+ <PackageRID Condition="'$(PortableBuild)' == '1'">osx-$(ArchGroup)</PackageRID>
</PropertyGroup>
</When>
<When Condition="'$(_runtimeOSFamily)' == 'rhel'">
<PropertyGroup>
<PackageRID>rhel.7-$(ArchGroup)</PackageRID>
+ <!-- Set the platform part of the RID if we are doing a portable build -->
+ <PackageRID Condition="'$(PortableBuild)' == '1'">linux-$(ArchGroup)</PackageRID>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<PackageRID>$(RuntimeOS)-$(ArchGroup)</PackageRID>
+ <!-- Set the platform part of the RID if we are doing a portable build -->
+ <PackageRID Condition="'$(PortableBuild)' == '1'">linux-$(ArchGroup)</PackageRID>
</PropertyGroup>
</Otherwise>
</Choose>