Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/coreclr/tools/aot/ILCompiler/ILCompiler_publish.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
<PropertyGroup>
<_IsPublishing>true</_IsPublishing>
<RuntimeIdentifier>$(OutputRID)</RuntimeIdentifier>
<RuntimeIdentifier Condition="'$(BaseOS)' != ''">$(BaseOS)</RuntimeIdentifier>
<!--
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.
In that case, we need to set the RuntimeIdentifier to the base RID so the SDK can find a runtime pack for publishing.
-->
<RuntimeIdentifier Condition="'$(OutputRID)' != '$(NETCoreSdkRuntimeIdentifier)' and '$(BaseOS)' != '' ">$(BaseOS)</RuntimeIdentifier>
Comment thread
jkoritzinsky marked this conversation as resolved.
<PublishDir>$(RuntimeBinDir)ilc-published/</PublishDir>
<SelfContained>true</SelfContained>
<PublishTrimmed>true</PublishTrimmed>
Expand Down
6 changes: 5 additions & 1 deletion src/coreclr/tools/aot/crossgen2/crossgen2_publish.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
<PropertyGroup>
<_IsPublishing>true</_IsPublishing>
<RuntimeIdentifier>$(OutputRID)</RuntimeIdentifier>
<RuntimeIdentifier Condition="'$(BaseOS)' != ''">$(BaseOS)</RuntimeIdentifier>
<!--
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.
In that case, we need to set the RuntimeIdentifier to the base RID so the SDK can find a runtime pack for publishing.
-->
<RuntimeIdentifier Condition="'$(OutputRID)' != '$(NETCoreSdkRuntimeIdentifier)' and '$(BaseOS)' != '' ">$(BaseOS)</RuntimeIdentifier>
Comment thread
jkoritzinsky marked this conversation as resolved.
<PublishDir>$(RuntimeBinDir)crossgen2-published/</PublishDir>
<SelfContained>true</SelfContained>
<PublishTrimmed>true</PublishTrimmed>
Expand Down
Loading