Visual Studio 2010 Ultimate 层图 - 开源等效项?

发布于 2024-10-29 23:44:55 字数 487 浏览 0 评论 0原文

我真的很喜欢拥有依赖关系图并防止某些程序集引用其他程序集的功能 - 确保其他开发人员遵守良好的编程实践。

是否有 Visual Studio 2010 Ultimates 依赖关系图的开源等效项?我查看了 NDepend,但是,这是用于商业用途的,所以我无法使用免费版本。

编辑:也许我指的是层图?无论使用什么图表来确保某些程序集不引用其他程序集,

Business assembly
Data assembly
Data.EntityFramework assembly

Data.EntityFramework 实现 Data 程序集中的接口。 Business 程序集仅具有对 Data 程序集的引用,并且通过 Unity 或其他 IoC 容器拥有来自 Data.EntityFramework 的实例。

我只有 Visual Studio 2010 Professional :(

I really like the feature of having a dependency diagram and preventing certain assemblies from having references to other assemblies - ensuring other developers adhere to good programming practices.

Is there an open source equivolent of Visual Studio 2010 Ultimates Dependency Diagram? I checked out NDepend, however, this is for business use, so I cannot use the free version.

Edit: Perhaps I'm referring to the layer diagram? Whatever diagram that can be used to ensure certain assemblies do not have references to other assemblies

I.E.

Business assembly
Data assembly
Data.EntityFramework assembly

Data.EntityFramework implements interfaces from the Data assembly. The Business assembly only has a reference to the Data assembly, and has an instance from Data.EntityFramework via Unity or another IoC container.

I only have Visual Studio 2010 Professional :(

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

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

发布评论

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

评论(1

只有一腔孤勇 2024-11-05 23:44:55

我还没有找到任何与 VS 2010 中的层图完全等效的东西。

ConQAT< /a> 可以让您可视化和分析架构一致性,但不会像层图那样在编译时强制执行规则。另外,ConQAT 似乎无法与 VS 2010 解决方案一起使用,这很遗憾,因为它看起来可能是一个非常有用的工具。它确实支持 VS 2008 解决方案。

我认为 Gendarme 是最接近您想要的匹配。这是 Mono 团队基于规则的工具,可以集成 进入 IDE 或构建服务器。因此,它将帮助您识别和实施良好的编程实践,但它不会为您生成任何图表。

Gendarme 开箱即用,带有许多用于捕获不良行为的规则(长方法、缺乏凝聚力、深继承树等)。您必须编写自己的自定义规则来强制执行特定的体系结构约束 - 在您的情况下,通过迭代程序集并检查引用。

规则是用 C# 编写的 - 这是

I haven't found anything that is a full equivalent of the layer diagrams in VS 2010.

ConQAT will let you visualize and analyze architectural conformance, but won't enforce rules at compile time like layer diagrams can. Also, ConQAT doesn't seem to work with VS 2010 solutions, which is a shame because it looks like it could be a very useful tool. It does support VS 2008 solutions.

Gendarme is the closest match to what you want, I think. This is a rule-based tool from the Mono team, and can be integrated into the IDE or your build server. So it will help you identify and enforce good programming practices, but it's not going to generate any diagrams for you.

Out of the box, Gendarme comes with lots of rules for catching bad practices (long methods, lack of cohesion, deep inheritance trees, etc.). You would have to write your own custom rules to enforce your specific architectural constraints - in your case by iterating through the assemblies and checking references.

The rules are written in C# - here's an example.

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