File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 3
3
<PropertyGroup >
4
4
<_IsPublishing >true</_IsPublishing >
5
5
<RuntimeIdentifier >$(OutputRID)</RuntimeIdentifier >
6
- <RuntimeIdentifier Condition =" '$(BaseOS)' != ''" >$(BaseOS)</RuntimeIdentifier >
6
+ <!--
7
+ If the output RID isn't the current SDK RID and we have a "base" RID, then the output RID isn't known to the SDK.
8
+ In that case, we need to set the RuntimeIdentifier to the base RID so the SDK can find a runtime pack for publishing.
9
+ -->
10
+ <RuntimeIdentifier Condition =" '$(OutputRID)' != '$(NETCoreSdkRuntimeIdentifier)' and '$(BaseOS)' != '' " >$(BaseOS)</RuntimeIdentifier >
7
11
<PublishDir >$(RuntimeBinDir)ilc-published/</PublishDir >
8
12
<SelfContained >true</SelfContained >
9
13
<PublishTrimmed >true</PublishTrimmed >
Original file line number Diff line number Diff line change 3
3
<PropertyGroup >
4
4
<_IsPublishing >true</_IsPublishing >
5
5
<RuntimeIdentifier >$(OutputRID)</RuntimeIdentifier >
6
- <RuntimeIdentifier Condition =" '$(BaseOS)' != ''" >$(BaseOS)</RuntimeIdentifier >
6
+ <!--
7
+ If the output RID isn't the current SDK RID and we have a "base" RID, then the output RID isn't known to the SDK.
8
+ In that case, we need to set the RuntimeIdentifier to the base RID so the SDK can find a runtime pack for publishing.
9
+ -->
10
+ <RuntimeIdentifier Condition =" '$(OutputRID)' != '$(NETCoreSdkRuntimeIdentifier)' and '$(BaseOS)' != '' " >$(BaseOS)</RuntimeIdentifier >
7
11
<PublishDir >$(RuntimeBinDir)crossgen2-published/</PublishDir >
8
12
<SelfContained >true</SelfContained >
9
13
<PublishTrimmed >true</PublishTrimmed >
You can’t perform that action at this time.
0 commit comments