需要 PostSharp 的免费模拟

发布于 2024-10-18 13:54:31 字数 174 浏览 6 评论 0原文

我听说过 PostSharp,但我想知道是否还有其他类似的工具 - 与 PostSharp 类似的工具?

是否有任何库可以用作 PostSharp 的替代品?还有其他工具可以对程序集进行后处理并根据属性注入代码吗?

PostSharp 的任何免费和/或开源替代品都会特别有趣。

谢谢。

I have heard of PostSharp, but I am wondering if there are any other similar tools - anything analogous to PostSharp?

Are there any libraries that could be used as an alternative to PostSharp? Any other tools that can post-process an assembly and inject code based on attributes?

Any free and/or open source alternatives to PostSharp would be especially interesting.

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

凡尘雨 2024-10-25 13:54:31

我们还需要一个免费的 PostSharp 替代品,用于我们正在开发的一些开源库,这些库需要组合和 PostSharp 的其他“专业”功能,需要许可费。由于我们不想创建实际上并不免费的开源软件,因此我开始使用 CodePlex < 上的 Microsoft.Cci 库/a>.这些库绝对支持 PostSharp 所做的一切,甚至还支持一些(如果您愿意,您可以从头开始创建整个程序集)。事实上,PostSharp 网站将其列为替代方案。

我不确定上面提到的CciSharp项目的状态,但它是基于这些库的。

对于临时开发人员来说,使用 Microsoft.Cci 的缺点是这些库过于强大,以至于最终极难使用。因此,我启动了一个名为 Afterthought 的开源项目,该项目利用 Microsoft.Cci,但提供了一个简单的 API足迹并且不需要 Cci 知识或对其的依赖即可工作。

如果功能集符合您的需求,我的建议是使用 PostSharp 社区版,因为这是一个具有良好性能的成熟解决方案。如果您足够勇敢并且需要执行一些复杂的 mod,请使用 Microsoft.Cci 库。如果您介于两者之间并且愿意帮助提供有关功能集的反馈,请尝试一下 Afterthought。

We also had a need for a free alternative to PostSharp for some open source libraries we are developing that required composition and other "professional" features of PostSharp requiring license fees. Since we did not want to create open source software that was not actually free, I started working with the Microsoft.Cci libraries on CodePlex . These libraries support absolutely everything that PostSharp does and then some (you could create an entire assembly from scratch if you wanted). In fact, the PostSharp website lists this as an alternative.

I am not sure the status of the CciSharp project mentioned above, but it is based on these libraries.

The downside of using Microsoft.Cci for the casual developer is these libraries are so powerful that they end up being extremely difficult to use. For this reason, I started an open source project called Afterthought that leverages Microsoft.Cci, but provides a simple API footprint and requires no knowledge of Cci or dependencies on it to work.

My recommendation would be to use the PostSharp community edition if the feature set matches your needs, as this is a mature solution with decent performance. If you are brave and need to perform some complex mods, use the Microsoft.Cci libraries. If you are somewhere in between and are willing to help provide feedback on feature sets, give Afterthought a try.

影子的影子 2024-10-25 13:54:31

PostSharp 社区版?它是免费的。

PostSharp Community Edition? It's free.

一张白纸 2024-10-25 13:54:31

CciSharp,但它还不是真正的生产质量。

PS:“不是生产质量”,我并不是说你不能在生产中使用它(你当然可以),而是说该程序及其 API 是库 (CCI) 的一部分,该库定期进行破坏兼容性的更新。

There's CciSharp, but it's not really production quality yet.

P.S. By "not production quality", I don't mean you can't use it in production (you certainly can), but rather that the program and its API are part of a library (CCI) that has regular compatibility-breaking updates.

神也荒唐 2024-10-25 13:54:31

事后思考:新的替代方案,似乎很有前途

Afterthought: new alternative, seems promising

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文