Visual Studio 2017无法打开.modelproj文件

20

为了使 Visual Studio 2017 Enterprise 能够打开现有的 .modelproj(基于 UML 的设计项目),需要安装哪些工作负载/组件?

4个回答

33
在选择.NET桌面开发工作负载后,请确保将可选的架构和分析工具组件添加到安装列表中。

最佳答案。请记得在右侧寻找此选项,而不是在“单独组件”中寻找。 - kagami
1
同时,如果有人想知道Visual Studio 2019的正确答案,请确保您进入“个别组件”并查找“.NET桌面开发”,以找到正确的选项。 - Imran Shaik
1
在 Visual Studio Installer 上勾选“单独组件”->“代码工具”->“依赖项验证”后,我成功加载了一个 .modelproj 项目。我使用的是 Visual Studio 2019 Community 版本。 - szenadam
我在Visual Studio 2022社区版中做了同样的事情,但是无法打开它。 - One Developer

18

我也遇到了这个错误。以下是我解决的方法:

  1. 打开Visual Studio安装程序
  2. 点击修改
  3. 进入个别组件标签页
  4. 然后选中代码工具内所有复选框

编辑03/03/2018

以下是评论区@Ben提供的解决方法:

  1. 打开Visual Studio 2017
  2. 选择工具菜单
  3. 选择获取工具和功能...
  4. 进入个别组件标签页
  5. 代码工具组,然后选中其中所有复选框

重启Visual Studio 2017后问题应该就被解决了。希望能对大家有所帮助。


2
确认,在VS2017社区版上。我是这样做到的:打开VS > 工具菜单 > 选择获取工具和功能... > 个别组件选项卡 > 代码工具组。 - Ben
1
我把你的评论添加到了回答中。@Ben - arslanaybars

7
以下内容对我在Visual Studio 2017(版本15.4.2)中成功:
  1. 打开Visual Studio Installer
  2. 转到选项卡Individual components
  3. Code tools部分中选择Live Dependency Validation。虽然这是一个不同的功能,但它为我安装了所需的依赖项。

2
在 Visual Studio 2019 Enterprise 中,没有“架构和分析工具”选项,但是如果您在“单个组件”中搜索“架构”,则会出现“实时依赖性验证”,因此我像您一样进行了检查和安装。这对我起作用了。 - Shiva
让我打开了解决方案,但我看到的文件是XML格式,无法看到图表。 - Deatk

0

要打开项目,您必须按照上述描述操作,并在代码工具中安装Live Dependency验证,但是...

"UML设计师已被移除。

UML设计师已从Visual Studio中移除。

UML diagrams are now presented as XML files
The UML Model Explorer no longer exists
Modeling project references are no longer used for dependency validation
The "Layer References" node in Solution Explorer is no longer displayed
The "Validate" build action on a Dependency (Layer) diagram is no longer used - the Build task has been removed
The project structure is maintained for round-tripping between versions
You can still open, create, edit, and save a Dependency (Layer) diagram as XML
TFS work items linked to a Dependency (Layer) diagram are not accessible on the design surface
Back linking from to DSL or a Layer is no longer supported
UML extensibility in the Modeling SDK is no longer supported"

https://learn.microsoft.com/is-is/visualstudio/modeling/what-s-new-for-design-in-visual-studio?view=vs-2017


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接