Skip to content

Commit 7163762

Browse files
committed
添加兼容性注释
1 parent 46194c8 commit 7163762

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/DotNetCampus.CommandLine/Package/build/Package.props

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,17 @@
22

33
<PropertyGroup>
44
<DotNetCampusCommandLineUseInterceptor Condition="'$(DotNetCampusCommandLineUseInterceptor)' == ''">true</DotNetCampusCommandLineUseInterceptor>
5-
<InterceptorsPreviewNamespaces>$(InterceptorsPreviewNamespaces);DotNetCampus.CommandLine.Compiler</InterceptorsPreviewNamespaces>
65
<InterceptorsNamespaces>$(InterceptorsNamespaces);DotNetCampus.CommandLine.Compiler</InterceptorsNamespaces>
6+
7+
<!--
8+
https://github.com/dotnet/roslyn/blob/main/docs/features/interceptors.md
9+
10+
For compatibility, the property <InterceptorsPreviewNamespaces> can be used as an alias for <InterceptorsNamespaces>.
11+
If both properties have non-empty values, they will be concatenated together in the order $(InterceptorsNamespaces);$(InterceptorsPreviewNamespaces) when passed to the compiler.
12+
为了兼容性,属性 <InterceptorsPreviewNamespaces> 可用作 <InterceptorsNamespaces> 的别名。
13+
如果两个属性都具有非空值,则它们在传递给编译器时将按 $(InterceptorsNamespaces);$(InterceptorsPreviewNamespaces) 的顺序连接在一起。
14+
-->
15+
<InterceptorsPreviewNamespaces>$(InterceptorsPreviewNamespaces);DotNetCampus.CommandLine.Compiler</InterceptorsPreviewNamespaces>
716
</PropertyGroup>
817

918
<ItemGroup>

0 commit comments

Comments
 (0)