VS2015 Enterprise Reverse Engineer Code to UML [英] VS2015 Enterprise Reverse Engineer Code to UML

查看:29
本文介绍了VS2015 Enterprise Reverse Engineer Code to UML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究 Visual Studio 2015 企业版的各种架构功能.一切看起来都不错.

但是,我已经编写好了代码,我想从中生成类图.不是项目中的标准添加类图 - 而是来自 UML 类图.我为此创建了一个建模项目.

我看不到这样做的方法 - 有可能吗?我可以将现有代码逆向工程成漂亮的图表吗?

这是我的解决方案视图:

这是类图设计器:

我可以将项目从解决方案资源管理器拖放到分层图中,但不能使用类.这是我之前制作的:

我可以从解决方案资源管理器中将类拖放到代码图中.将我所有的建模都集中在一个项目中会很好.我真的很讨厌将它添加到单个项目中的旧类图表.

这似乎是以前 Ultimate 版本中的一个功能.但是,以下网址没有 2015 年的链接(仅到 2013 年).

MSDN

更新

我安装了 2013 Ultimate 我们有许可证,实际上所有这些功能都在这个版本中.为什么不是 2015 Enterprise?我们可以期待微软不再支持它并逐步淘汰它吗?或者是2015年没有时间的情况,它将包含在更新中.

解决方案

TLDR;在这一点上,Visual Studio 2015+ 没有计划支持对 UML 类图和 UML 序列图的逆向工程.

Visual Studio 2015 使用全新的 C# 和 VB 编译器(Roslyn 项目),许多与代码交互的功能必须重新设计以支持新范式.

同时,我们的遥测数据显示逆向工程的使用率并不高.与客户的对话表明,许多人正在转向更快的发布周期,这意味着图表过时太快而无用.

因此,我们决定投资于类图(而不是 UML 的)和代码图.这两者都支持逆向工程.Code Map 尤其致力于消除许多错误并提高性能和可扩展性,并且是分析架构的首选技术.这是一篇文章,展示了 Code Map 擅长的一些场景.

也就是说,VS 2013 继续支持这些方案,您可以并排安装.您可以在 UserVoice 上询问功能 - 已经有一个 请求带回序列图逆向工程.

您打算使用逆向工程师做什么?

I'm looking at the various Architecture features of Visual Studio 2015 Enterprise edition. All looks good.

However, I have code that is all ready written and I would like to generate Class Diagrams from it. NOT the standard Add Class Diagram in a Project - but from the UML Class Diagrams. I have created a Modelling Project for this.

I cannot see a way to do this - is it possible? Can I reverse engineer existing code into nice diagrams?

Here is my solution view:

Here is the Class Diagram Designer:

I can drag and drop projects from Solution Explorer into a Layered Diagram but nothing with classes. Here is one I made earlier:

I can drag and drop classes into Code Map from Solution Explorer. It would be nice to have all my modelling in one project. I really hate the old class diagramming where you add it to a single project.

This seemed to be a feature in previous Ultimate editions. However, the following Url does not have a link for 2015 (only up to 2013).

MSDN

UPDATE

I installed 2013 Ultimate we have a licence for and indeed all of this functionality is in this version. Why not 2015 Enterprise? Can we expect Microsoft is not going to support this no longer and is phasing it out? Or was it a case of there was no time for 2015 and it will be included in an update.

解决方案

TLDR; at this point Visual Studio 2015+ doesn't have plans to support reverse engineering to the UML class diagram, nor to the UML sequence diagram.

Visual Studio 2015 uses brand new compilers (project Roslyn) for C# and VB, and many features that interact with the code had to be reworked to support the new paradigm.

At the same time, our telemetry data shows that reverse engineering is not used that much. Conversations with customers show that many people are moving to faster release cycles, which means that diagrams go out of date too quickly to be useful.

As such we decided to invest in Class Diagrams (not the UML ones) and in Code Map. Both of these support reverse engineering. Code Map in particular has been worked on to eliminate many bugs and improve performance and scalability, and is the technology of choice for analyzing architecture. Here's an article that shows some scenarios that Code Map is good at.

That said, VS 2013 continues to support these scenarios and you can install it side by side. You can ask for features on UserVoice - there is already a request to bring back sequence diagram reverse engineering.

What were you planning to use Reverse Engineer for?

这篇关于VS2015 Enterprise Reverse Engineer Code to UML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆