Skip to content

Commit 06e9352

Browse files
committed
重构(Directory.Build.props, RegionInjectAttribute): 更新版本号并调整类访问修饰符
更新 Directory.Build.props 文件中的版本号从 1.0.6 到 1.0.7 调整 RegionInjectAttribute.cs 文件中 RegionInjectAttribute 类的访问修饰符,从 public 修改为 internal,限制类的访问范围到程序集内部
1 parent 1fcd91b commit 06e9352

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>1.0.6</Version>
3+
<Version>1.0.7</Version>
44
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
55
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
66
<LangVersion>preview</LangVersion>

src/CodeInjectSourceGenerator/RegionInjectAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace CodeInject
1818
/// 用于指定要注入的文件名、区域名称和占位符的特性。
1919
/// </summary>
2020
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
21-
public sealed class RegionInjectAttribute : Attribute
21+
internal sealed class RegionInjectAttribute : Attribute
2222
{
2323
/// <summary>
2424
/// 获取或设置要注入的文件名。如果为null或空字符串,则搜索所有可用文件。

0 commit comments

Comments
 (0)