Skip to content

Commit

Permalink
允许开发者设置日志的命名空间
Browse files Browse the repository at this point in the history
  • Loading branch information
walterlv committed Nov 13, 2024
1 parent 7764de6 commit 40283ce
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 40283ce

Please sign in to comment.