Skip to content

Commit

Permalink
fix bad msbuild syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
nagilson committed Apr 25, 2023
1 parent 12d72f6 commit ef50ea6
Showing 1 changed file with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,17 @@ Copyright (c) .NET Foundation. All rights reserved.
</PropertyGroup>

<!-- Breaking change in .NET 8: Some publish properties used to imply SelfContained or require it at the time of this PR to work. We decided to infer SelfContained still in these situations. -->
<PublishSelfContained Condition="'$(SelfContained)' == '' and
'$(PublishSelfContained)' == '' and
'$(_TargetFrameworkVersionWithoutV)' &gt; '7.0' and
(
'$(PublishTrimmed)' == 'true' or
'$(PublishSingleFile)' == 'true' or
'$(PublishAot)' == 'true'
)">true</PublishSelfContained>
<PropertyGroup Condition="'$(SelfContained)' == '' and
'$(PublishSelfContained)' == '' and
'$(_TargetFrameworkVersionWithoutV)' &gt; '7.0' and
(
'$(PublishTrimmed)' == 'true' or
'$(PublishSingleFile)' == 'true' or
'$(PublishAot)' == 'true'
)">
<PublishSelfContained>true</PublishSelfContained>
</PropertyGroup>


<!-- Edit SelfContained to match the value of PublishSelfContained if we are publishing.
This Won't affect t:/Publish (because of _IsPublishing), and also won't override a global SelfContained property.-->
Expand Down Expand Up @@ -344,4 +347,5 @@ Copyright (c) .NET Foundation. All rights reserved.
</GetDefaultPlatformTargetForNetFramework>
</Target>


</Project>

0 comments on commit ef50ea6

Please sign in to comment.