Skip to content

Commit

Permalink
Infer RID for SelfContained at any time. Should check if PublishAot e…
Browse files Browse the repository at this point in the history
…tc infer it by the time this happens....
  • Loading branch information
nagilson committed Dec 13, 2022
1 parent b0251c6 commit 17ac493
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ Copyright (c) .NET Foundation. All rights reserved.
'$(RuntimeIdentifier)' == '' and
'$(_IsExecutable)' == 'true' and '$(IsTestProject)' != 'true' and
'$(IsRidAgnostic)' != 'true' and
'$(_IsPublishing)' == 'true' and
('$(_IsPublishing)' == 'true' or '$(SelfContained)' == 'true') and
(
'$(SelfContained)' == 'true' or
'$(PublishReadyToRun)' == 'true' or
'$(PublishSingleFile)' == 'true' or
'$(PublishAot)' == 'true'
Expand All @@ -88,7 +87,7 @@ Copyright (c) .NET Foundation. All rights reserved.
<PropertyGroup Condition="'$(_IsPublishing)' == 'true' and '$(PublishRuntimeIdentifier)' != ''">
<RuntimeIdentifier>$(PublishRuntimeIdentifier)</RuntimeIdentifier>
</PropertyGroup>

<PropertyGroup Condition="'$(PlatformTarget)' == ''">
<_UsingDefaultPlatformTarget>true</_UsingDefaultPlatformTarget>
</PropertyGroup>
Expand Down

0 comments on commit 17ac493

Please sign in to comment.