-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何设置全局拦截 而不是程序及拦截 #96
Labels
question
Further information is requested
Comments
你是说整个解决方案吧,这个目前不支持,Rougamo 是项目级 AOP 组件,运行依赖项目本身的 MSBuild 任务。 不过你可以自己编写一个 SourceGenerator,为每个项目生成这样一段代码。 |
有好像有解决方案,需要自己编写tag文件
…---原始邮件---
发件人: ***@***.***>
发送时间: 2024年12月30日(周一) 晚上6:35
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [inversionhourglass/Rougamo] 如何设置全局拦截 而不是程序及拦截 (Issue #96)
你是说整个解决方案吧,这个目前不支持,Rougamo 是项目级 AOP 组件,运行依赖项目本身的 MSBuild 任务。
不过你可以自己编写一个 SourceGenerator,为每个项目生成这样一段代码。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
tag文件是什么 |
targets 文件会在引用 package 的项目里尝试自动添加 attribute |
很长时间没有看 github 了,如果该问题还有疑问,我们继续讨论,如果没有的话就直接关闭了。 你上面贴的链接在现在已经找不到对应行数的代码了,查看过往代码记录,你贴的应该是这一行: <ProjectReference Include="..\Xunit.DependencyInjection.Analyzer\Xunit.DependencyInjection.Analyzer.csproj" PrivateAssets="All" ReferenceOutputAssembly="false" /> 不太清楚你贴这一行的意思。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
// 在程序集级别进行代理,所有标记了 ObsoleteAttribute 的方法都将应用 ObsoleteProxyMoAttribute
[assembly: MoProxy(typeof(ObsoleteAttribute), typeof(ObsoleteProxyMoAttribute))]
The text was updated successfully, but these errors were encountered: