Skip to content

Commit

Permalink
Do not overwrite CSharpier_Check, when already set. (#1314)
Browse files Browse the repository at this point in the history
At this point `CSharpier_Check` can be already set. For example:
`Directory.Build.props` imported before `CSharpier.MsBuild.props`, and
`CSharpier_Check` can be set here. Set default value only when current
is empty.
  • Loading branch information
PetSerAl committed Aug 6, 2024
1 parent b7331a1 commit 29f9db4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Src/CSharpier.MsBuild/build/CSharpier.MsBuild.props
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<Project>
<PropertyGroup>
<PropertyGroup Condition=" '$(CSharpier_Check)' == '' ">
<!-- Setting default value here, so it can be overwritten by caller -->
<CSharpier_Check>false</CSharpier_Check>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<CSharpier_Check>true</CSharpier_Check>
<CSharpier_Check Condition=" '$(Configuration)' == 'Release' ">true</CSharpier_Check>
</PropertyGroup>
</Project>

0 comments on commit 29f9db4

Please sign in to comment.