Reverse engineering option in Visual studio 2008 arch edition - c#

We have visual studio 2008 architecture installed and a c# solution created. We need to generate UML diagram (showing the classes, the relationship between them etc). In the architecture edition we don't see any option that would generate such diagram. The option of class digram mearly generates the class diagram but do not show such relationship.
Is anyone aware of this?
Thanks in advance.

AFAIK UML diagrams are non existent in VS 2008
They should be available in VS 2010
Best bet here: download a tool that can import the existing code and create diagrams
try Enterprise architect- http://www.sparxsystems.com/
HTH

You need to install Visio 2003 or Visio 2007 to generate UML diagrams from within Visual Studio.
Also note, not sure what relationships you're looking to see, but any property that references an object, you can right-click and pick 'Show Association', which will connect those on the diagram.
Also also, you can download the power tools for architecture edition to give you more diagramming abilities in the designer: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=5ef45ad4-336b-4a37-aded-ee9c9d8e6f8d&DisplayLang=en
Edit: Apparently this was removed from VS2008. If you have access to Visual Studio 2005, there are steps here for reverse-engineering a 2008 project in 2005.

Related

Where is Class Diagram on Visual Studio 2017 community edition

I could not find how to generate existing class diagrams on VS2017 Community Edition. Is it not available to Community Editions. Could you please help how can I generate class diagrams of the project?
I assume you mean class diagrams, not UML diagrams.
Starting with Visual Studio 2017, the support for class diagrams is not installed by default. You need to explicitly select it during installation:
From the Start menu, launch Visual Studio Installer.
Click Modify button for your installation.
Switch to Individual components tab, scroll down and select Class Designer. Press Modify button.
The complete procedure with screenshots is described here (because our product VSdocman also relies on this feature if you want to generate class documentation with the diagrams).
I have the impression that you're not talking about the UML diagram feature which was retired indeed. I'm assuming you're talking about the Class Diagram.
First of all as Peter pointed out, make sure this feature is installed in your system.
Then, as answered here, it's a known issue (VOTE!)
As a workaround, From the New File dialog box create a plain XML named Diagram.cd (replace Diagram with your choice), right click the file and select Open With..., and select XML (Text) Editor, then replace its contents with the following:
<?xml version="1.0" encoding="utf-8" ?>
<ClassDiagram MajorVersion="1" MinorVersion="1">
<Font Name="Segoe UI" Size="9" />
</ClassDiagram>
Then close the file saving it. When you reopen it normally it should work now.
Community edition doesn't allow you to do it.
Version support for VS 2015 for architecture and modeling tools
Apparently Microsoft has decided to not add that functionality in Visual Studio 2017, for any of the product versions
blogs.msdn.microsoft.com

VS 2015, class diagram

I am wondering how to create the UML class diagram from code. I've searched for it, but all I've found is either tutorials on how to make it by myself or advices to choose "View Class Diagram", but it doesn't create the UML class diagram with UML standards, it rather displays it with VS's own icons for classes, methods, etc. I am using VS NET 2015 Enterprise Edition. Can anybody help me?
The accepted answer is not completely correct. This feature is available in Visual Studio 2015 Enterprise edition (equivalent to Visual Studio Ultimate).
According to the VS 2015 Edition Comparison, there are 4 components for Architecture and Modeling:
Architectual Layer Diagrams
Architecture Validation
UML® 2.0 Compliant Diagrams (Activity, Use Case, Sequence, Class, and Component)
Visualize solutions with Dependency Graphs and Code Maps
Entrprise edition supports all 4. Community and Professional only support #4, but can open diagrams created in earlier editions of VS in read-only mode.
Ok, I've found it is not supported in VS 2015. To be able it another installation of VS 2013 is needed...

How to create a Uml Diagram with Visual Studio 2013

I would like to make a UML flow diagram and I currently have Visual studio 2013 however I cannot find a way to begin creating a UML Diagram i.e. either the project to add or the item.
I cannot find the 'Architecture Menu' and there doesnt seem to be a way to add it.
Any Ideas on what I'm missing / Doing wrong?
This is the type of diagram I would like to create:
You require the Visual Studio 2013 Ultimate SKU to access the modeling features. To check which version of Visual Studio you have click on Help > About Microsoft Visual Studio.
You can compare the features available across various SKUs here: http://www.visualstudio.com/products/compare-visual-studio-products-vs

is it possible to use team explorer for version control without buying license for visual studio?

I downloaded the team explorer 2005 and when I tried to open the application from source control , I am getting the error .csproj applicaion type is not installed.
How can I resolve this ?
In order to open a .csproj you will need to install a version of Visual Studio that supports .csproj`s. There are free versions, called express SKU's, of Visual Studio that should help you out here. It, and the other express SKU's, are available at the following link
http://www.microsoft.com/express/Windows/
You need a CAL (Client Access License) to run just team explorer and access the TFS functionality to check in and check out and other things. If you're wanting to open the projects and make changes you'll need a license for visual studio. There are many different options there. I don't believe you can use the free one in your situation. Using VS professional you'll still need to get the CAL as well to access TFS but if you get one of the team editions of VS you will have the TFS CAL included.
That's how I understand the licensing for TFS/VS but I'm not an expert and it would probably be best to ask your supplier or microsoft about licensing.
I believe Team Explorer allows one to interface with TFS which includes accessing project documentation, filing bugs, and possibly retrieving source code. However, I believe you need Visual Studio to open up project/solution files (i.e. a developer task).
This might be different with Visual Studio 2010 but that's the sales pitch we heard regarding 2008.
In summary, although you need the specific module that loads C# projects. When you installed Team Explorer, although you have the basic IDE, that module is not loaded (is similar to when you install SQL Server client - you have the Visual Studio IDE, but the only module loaded is the SQL Server management Studio). As some of the other guys suggested, try to install Visual Studio C# Express (you can find more information here - http://www.microsoft.com/express/Windows/ - click on Microsoft® Visual C#® 2008 Express Edition). Notice that later on if you want to use web application, you will need to install the web edition and so forth.
When you install Visual Studio Professional (or Team Suite) most of those modules are installed by default.
I hope this info helps.

Importing UML Diagrams into Visual Studio

In school I have learned that creating UML Diagrams/Models is great design practice before taking on a project. I have found it quite useful myself, in doing so I tackle projects much faster, and my overall design tends to be better.
I've noticed a basic redundancy issue when it comes to writing code. In Visio you can be very descriptive in your Models. Your basic outlines for your classes can include C# variable types/methods. They are detailed enough that Visio has you choose whether it is C# or VB.
My Question is, with this much detail, does there exist an importing technique between Visio and Visual Studio 2008? It seems like you could import that simple model as an outline for classes in Visual Studio, with everything declared except for the actual code within Methods. This would be very useful, especially when it comes to design steps for creating a program. My classes/variables/methods would already be declared for me. I would just have to go back and write the meat of the code.
I've done some searching on the subject and haven't turned up much, it seems like Microsoft would have included a feature to do this.
From the Visual Studio Team System 2008 and Visio FAQ:
Can I Migrate Visio UML Diagrams to
Visual Studio 2008? Visual Studio
2008 does not include support for
migrating UML diagrams directly. If
you have static structure UML
diagrams, you can use Visio for
Enterprise Architects to generate code
based on the model. Then you can open
the code in Visual Studio Team System
2008 Architecture edition and create
class diagrams from the generated
code. For more information, see
Working with Class Diagrams.
Other UML diagram types are not
supported for migrating model
information to Visual Studio 2008.
You might want to post in the VS 2010 arch forum to ask about support for this in a future release for Visual Studio 2010 Ultimate. It won't be in the RTM version, but the product team should provide you an update about this feature:
Visual Studio 2010 Architectural Discovery & Modeling Tools forum at http://social.msdn.microsoft.com/Forums/en-US/vsarch/threads

Categories