Skip to content

Commit 29e958c

Browse files
committed
empty the root namespace for all C# projects by default
1 parent e7e8d73 commit 29e958c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Smdn.MSBuild.ProjectAssets.Library/project/Project.targets

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ SPDX-FileCopyrightText: 2022 smdn <smdn@smdn.jp>
33
SPDX-License-Identifier: MIT
44
-->
55
<Project>
6+
<PropertyGroup Condition="'$(MSBuildProjectExtension)' == '.csproj'" Label="Overwrite C#-only properties">
7+
<!-- empty the root namespace so that the namespace is determined only by the directory name, for code style rule IDE0130 -->
8+
<RootNamespace/>
9+
</PropertyGroup>
10+
611
<!-- GitHub Actions' GITHUB_STEP_SUMMARY -->
712
<Import Project="$(MSBuildThisFileDirectory)GitHubActionsStepSummary.targets" />
813

0 commit comments

Comments
 (0)