简体   繁体   English

找不到生成代码。 UML类图进行编码

[英]Can't Find Generate Code. UML Class Diagram To code

I am trying to Convert Uml Class Diagram into Code I am using this msdn link as help but this is for VS 2012 so it cant help a lot. 我正在尝试将Uml类图转换为代码,我正在使用此msdn链接作为帮助,但这是针对VS 2012的,因此它无济于事。

I have made two projects 我做了两个项目

  1. UML class diagram from Modelling 来自建模的UML类图
  2. C# Console Application C#控制台应用程序

and I have added Reference of C# Console Application in UML class Diagram . 并且我在UML类Diagram中添加了C#控制台应用程序参考。

I have already made uml class Diagram in Modeling project but can not go further because i don't find any option like Generate code etc I have also made class diagram file in Console project of extension .cd but i cant put relationship between classes .just add new classes .interface etc Kindly help me to understand me this concept and send me more related links. 我已经在Modeling项目中制作了uml类图,但是无法走得更远,因为我找不到像Generate code等之类的任何选项,我也在扩展项.cd的Console项目中制作了类图文件,但是我不能放在类之间.just添加新的类.interface等,请帮助我理解这个概念,并向我发送更多相关的链接。

I think you need to have the "Microsoft Visual Studio 2010 Visualization and Modeling Feature Pack" installed in order to be able to generate the code from the class diagrams. 我认为您需要安装“ Microsoft Visual Studio 2010可视化和建模功能包”,以便能够从类图中生成代码。 Here's the link explaining how to do it in using Visual Studio 2010: 这是解释如何使用Visual Studio 2010的链接:

How to: Generate Code from UML Class Diagrams in VS2010 如何:在VS2010中从UML类图生成代码

I haven't tried it myself, but I hope that helps. 我自己还没有尝试过,但是希望对您有所帮助。 Good Luck. 祝好运。 Stephan 史蒂芬

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM