PostSharp 1.5 和 .Net 4

发布于 2024-09-13 09:57:03 字数 87 浏览 4 评论 0原文

Postsharp 很棒,但只有 1.5 版本仍然开源。它可以与 .net 4.0 一起使用吗?如果没有,还有其他好的 AOP 编织器吗?我对代理类型不感兴趣。

Postsharp is great, but only the 1.5 version is still opensource. Does it work with .net 4.0? If not, are there any other good AOP weavers out there? I'm not interested in the proxy type.

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

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

发布评论

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

评论(4

燃情 2024-09-20 09:57:03

PostSharp 1.5 无法在 .NET 4.0 上运行。 http://www.sharpcrafters.com/postsharp/alternatives 上有关于替代方案的讨论。

PostSharp 1.5 will not run on .NET 4.0. There's a discussion of alternatives on http://www.sharpcrafters.com/postsharp/alternatives.

热鲨 2024-09-20 09:57:03

回答我自己的问题:

PostSharp 1.5 似乎可以与 .net 4.0 一起使用。我有一个 [Cache] 属性在 .net 4.0 类库中工作得很好。现在,也许它的某些部分不起作用,但我还没有触及这些部分。盖尔你能在这里启发我吗?

也就是说,最新 PostSharp 的社区版似乎是不错的选择。感谢 Gael 提供了这款出色产品的商业可用精简版。

To answer my own question:

PostSharp 1.5 does appear to work with .net 4.0. I have a [Cache] Attribute working just fine in a .net 4.0 Class Library. Now, maybe some parts of it don't work, but i haven't hit those. Gael can you enlighten me here?

That said, the community edition of the latest PostSharp seems like the way to go. Thank you Gael for providing a commercially usable lite version of this great product.

っ左 2024-09-20 09:57:03

我不确定我是否同意其他答案...我们在工作中的一些 ASP.NET 4 项目上使用 PostSharp,没有任何问题!

我不记得我们必须做任何棘手的事情才能让它工作,所以如果您遇到错误,请将它们发布在这里,也许我们可以提供帮助。

I'm not sure I agree with the other answers... We're using PostSharp on some ASP.NET 4 projects at work with no problems!

I don't remember us having to do anything tricky to get this to work, so if you're getting errors, post them here, and maybe we can help.

半仙 2024-09-20 09:57:03

不支持从 VS2010 运行 PostSharpo 1.5,但我已经设法使其工作,但需要一些修补。
在 .csproj 文件中添加以下行:

<PropertyGroup>
    <PostSharpUseCommandLine>True</PostSharpUseCommandLine>
</PropertyGroup>

这将使 PostSharp 运行,直到您可以升级到更新更好的版本。

Running PostSharpo 1.5 from VS2010 is not supported but I've managed to make it work but it took some tinkering.
In the .csproj file add the following line:

<PropertyGroup>
    <PostSharpUseCommandLine>True</PostSharpUseCommandLine>
</PropertyGroup>

This would make PostSharp run until you can upgrade to a newer and better version.

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