Skip to content

Commit

Permalink
Add Labels to some Property groups
Browse files Browse the repository at this point in the history
Some property groups have conditions that also self-explain their purpose.
So, Add labels to bare property groups only to differentiate among themselves.
Then, when contributors add any additional properties, they'll know where to put them.
  • Loading branch information
Nirmal4G committed Nov 24, 2022
1 parent a797f46 commit 404c5be
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions build/Community.Toolkit.Common.props
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project>

<PropertyGroup>
<PropertyGroup Label="Build">
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<ContinuousIntegrationBuild>$(TF_BUILD)</ContinuousIntegrationBuild>
<SourceLinkEnabled>$(ContinuousIntegrationBuild)</SourceLinkEnabled>
</PropertyGroup>

<PropertyGroup>
<PropertyGroup Label="Compile">
<Nullable>Enable</Nullable>
<LangVersion>11.0</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand All @@ -21,7 +21,7 @@
<NoWarn>$(NoWarn);CS8500</NoWarn>
</PropertyGroup>

<PropertyGroup>
<PropertyGroup Label="Assembly">
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)toolkit.snk</AssemblyOriginatorKeyFile>
<AssemblySignPublicKeyFile>$(MSBuildThisFileDirectory)toolkit.spk</AssemblySignPublicKeyFile>
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="..\$(MSBuildThisFile)" />

<!-- Common properties for all projects under src folder -->
<PropertyGroup>
<PropertyGroup Label="Build">
<IsPackable>true</IsPackable>
<IsPublishable>true</IsPublishable>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
Expand Down
4 changes: 2 additions & 2 deletions tests/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
This also includes non-test projects as well. But if it's required then
override the following properties only within those projects.
-->
<PropertyGroup>
<PropertyGroup Label="Build">
<IsPackable>false</IsPackable>
<IsPublishable>false</IsPublishable>
<NoWarn>$(NoWarn);CS8002;SA0001</NoWarn>
</PropertyGroup>

<PropertyGroup>
<PropertyGroup Label="Project">
<IsTestProject>true</IsTestProject>
<!-- The MVVM Toolkit unit tests use `Mvvm.ExternalAssembly` project as a `ProjectReference` for testing -->
<IsTestProject Condition="$(MSBuildProjectName.Contains('Mvvm.ExternalAssembly'))">false</IsTestProject>
Expand Down

0 comments on commit 404c5be

Please sign in to comment.