Skip to content

Commit

Permalink
Merge pull request #31 from dotnet-campus/t/walterlv/namespace
Browse files Browse the repository at this point in the history
允许开发者设置日志的命名空间
  • Loading branch information
lindexi authored Nov 13, 2024
2 parents 7764de6 + 40283ce commit ca371c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
- 所谓优先,指的是生成 global usings 以指定优先级;
-->
<!-- <DCUseGeneratedLogger></DCUseGeneratedLogger> -->

<!--
源生成器生成的日志系统的命名空间。-->
<!-- <DCGeneratedLoggerNamespace></DCGeneratedLoggerNamespace> -->
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
</PropertyGroup>

<PropertyGroup>
<_DLRootNamespace>$(RootNamespace)</_DLRootNamespace>
<_DLRootNamespace Condition=" '$(_DLRootNamespace)' == '' ">$(DCGeneratedLoggerNamespace)</_DLRootNamespace>
<_DLRootNamespace Condition=" '$(_DLRootNamespace)' == '' ">$(RootNamespace)</_DLRootNamespace>
<_DLRootNamespace Condition=" '$(_DLRootNamespace)' == '' ">$(MSBuildProjectName.Replace(" ", "_"))</_DLRootNamespace>
</PropertyGroup>

Expand Down

0 comments on commit ca371c1

Please sign in to comment.