正在尝试自学C# .NET等。我已经订阅了 LearnNowOnline,其中一门类(class)有一个实验室模块,该模块向导师展示了如何使用类设计器查看类图。 Express 版本是否具有类设计器功能?我在哪里可以找到有关免费版和付费版之间区别的详细信息?
我正在使用 VS 2013 Express(桌面)和 "How to add class diagrams..." 上的说明如 MSDN 上所述。
1) 在解决方案资源管理器中,右键单击项目名称。然后选择添加新项目或添加新项目。
2) 在模板下,选择类图。 我什至没有看到模板选择项。 对于 Visual C++ 项目,在模板下查找,然后在实用程序下查找此模板。
3) 类图在类设计器中打开,并在项目层次结构的解决方案资源管理器中显示为扩展名为 .cd 的文件。使用类设计器工具箱将形状和线条拖到图表中。
实验室解决方案有一个 .cd 文件,当我单击并查看此 .cd 文件时,窗口显示:
<?xml version="1.0" encoding="utf-8"?>
<ClassDiagram MajorVersion="1" MinorVersion="1">
<Font Name="Tahoma" Size="8.25" />
<Class Name="ClassesLabCompleted.LogFile" Collapsed="true">
<Position X="0.5" Y="0.5" Width="1.5" />
<TypeIdentifier>
<FileName>LogFile.cs</FileName>
<HashCode>AAAAAAAAgAAAAAAAAAAAAAAAAAAAACQAAAgAAABAAAA=</HashCode>
</TypeIdentifier>
</Class>
</ClassDiagram>
没有像教程视频中那样漂亮的用户界面。此外,我没有右键单击上下文菜单选择“查看类图”
如果 Visual Studio 2013 Express 支持此功能,我该如何访问它?
最佳答案
这是 Visual Studio Professional 或更好的功能。 Express 没有代码可视化和类设计器功能(也没有任何其他 UML 功能)。
据我所知,没有包含 Express 版本的 Visual Studio 的官方功能比较。但是there is a blog post that describes the 2012 features升级到 2013 年,它们几乎保持不变。
2013 feature comparison for the other editions can be found here .
更新
现在 Visual Studio Community Edition 已经可用,您可以使用它代替 Express。这取决于您是否属于社区版的许可类别:
Q: Who can use Visual Studio Community?
A: Here’s how individual developers can use Visual Studio Community:
- Any individual developer can use Visual Studio Community to create their own free or paid apps.
Here’s how Visual Studio Community can be used in organizations:
- An unlimited number of users within an organization can use Visual Studio Community for the following scenarios: in a classroom learning environment, for academic research, or for contributing to open source projects.
- For all other usage scenarios: In non-enterprise organizations, up to 5 users can use Visual Studio Community. In enterprise organizations (meaning those with >250 PCs or > $1 Million US Dollars in annual revenue), no use is permitted beyond the open source, academic research, and classroom learning environment scenarios described above.
关于c# - Visual Studio 2013 Express 是否支持类设计器功能?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21491389/