Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ Copyright (c) .NET Foundation. All rights reserved.
then set a default value for PublishRuntimeIdentifier if RuntimeIdentifier isn't set.
However, don't do this if we are packing a PackAsTool project, as the "outer" build should still be
without a RuntimeIdentifier -->
<PropertyGroup Condition="'$(PublishRuntimeIdentifier)' == '' And
<PropertyGroup Condition="'$(UseDefaultPublishRuntimeIdentifier)' == '' And
'$(PublishRuntimeIdentifier)' == '' And
'$(RuntimeIdentifier)' == '' And
'$(_IsExecutable)' == 'true' And
(
Expand All @@ -138,6 +139,9 @@ Copyright (c) .NET Foundation. All rights reserved.
'$(PublishAot)' == 'true'
) And
!('$(PackAsTool)' == 'true' And '$(_IsPacking)' == 'true')">
<UseDefaultPublishRuntimeIdentifier>true</UseDefaultPublishRuntimeIdentifier>
</PropertyGroup>
<PropertyGroup Condition="'$(UseDefaultPublishRuntimeIdentifier)' == 'true'">
<PublishRuntimeIdentifier>$(NETCoreSdkPortableRuntimeIdentifier)</PublishRuntimeIdentifier>
</PropertyGroup>

Expand Down
Loading