Block schema in Visual Studio - c#

I am novice and work with Visual Studio, .Net, C#.
Could you please help me with the following question:
If I already created a solution
How can I create and view its block-schema in Visual Studio?
I mean diagram showing iteraction between mthods and variables etc

When you mean creating UML Class Diagrams from code then look here:
http://msdn.microsoft.com/en-us/library/ff657806.aspx
Also there is set of videos about modeling features of Visual Studio
http://channel9.msdn.com/blogs/clinted
But architecture explorer feature is present only in Visual Studio 2010 Ultimate
Also look at Visualization and Modeling Feature Pack
http://msdn.microsoft.com/en-US/vstudio/ff655021.aspx
When you have no Ultimate version of VS, maybe NClass will be good free alternative for you in this case.

Right click on your project, "View class diagram". This is available only in Ultimate edition.

What you're describing sounds more like a "Sequence Diagram". If you have Visual STudio 2010 Ultimate, you and right-click within any method and select "Generate Sequence Diagram".
But, sequence diagrams don't show all interactions with local variables; just method (and optionally property) invocations.

Related

Auto-complete a switch-case in Visual Studio Code

I am a student learning Game design as well as Programming in C# and have been using Visual Studio for a while. I recently switched back to Visual Studio Code for a recent project and i have been annoyed by a a certain lacking auto complete feature.
Using Visual Studio Code, how does one auto complete a switch case in the same way like Visual Studio does?
I have searched the Extension Market in Visual Studio Code and i have found no single extension that achieves this. I have also searched (although not in depth) Microsoft's documentation about Visual Studio Code for this feature yet nothing has come up in my findings about this.
If there is not any official method, is there at least any way possible to achieve a similar effect?

Does Visual Studio 2013 Express support the Class Designer feature?

Attempting to learn C# .NET etc self study. I have subscribed to LearnNowOnline and one of the courses has a Lab module that shows the tutor using Class Designer to view a Class Diagram. Does the Express version have the Class Designer feature? Where can I find details about the difference between the free and paid versions?
I am using VS 2013 Express (Desktop) and the directions on "How to add class diagrams..." as documented on MSDN.
1) In Solution Explorer, right-click the project name. Then choose Add New Item or Add, New Item.
2) Under Templates, choose Class Diagram. I don't even see a Templates selection item.
For Visual C++ projects, look under Templates, and then under Utility to find this template.
3)The class diagram opens in Class Designer and appears as a file that has a .cd extension in Solution Explorer in the project hierarchy. Use the Class Designer toolbox to drag shapes and lines to the diagram.
The lab solution has a .cd file and when I click and view this .cd file the window shows:
<?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>
No pretty UI like in the tutorial's video. Further, I have no right click context menu selection to "View Class Diagram"
If Visual Studio 2013 Express supports this feature, how do I access it?
This is a Visual Studio Professional or better feature. Express doesn't have the Code Visualization and class Designer features (nor any of the other UML features).
As far as I can tell there is no official feature comparison for Visual Studio that includes the Express editions. But there is a blog post that describes the 2012 features and they have remained almost identical with the upgrade to 2013.
The 2013 feature comparison for the other editions can be found here.
UPDATE
Now that the Visual Studio Community Edition is available, you may be able to use that instead of Express. It depends on whether you fall in the license category for the Community Edition:
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.
Source

How to generate UML Diagrams from VS2012 Professional Edition?

For the user of professional edition in VS2012, is there a method to generate the UML (CLASS, SEQUENCE) Diagrams from VS2012?
I have already done implenting my solution project in VS2012. Now i want to generate the class diagram for it.Therefore, if anyone knows about it?
If please help me.
Thank you.
As has already been noted, the Professional edition of Visual Studio doesn't allow you to generate sequence diagrams.
An alternative would be to use a proper UML tool, such as Enterprise Architect from Sparx Systems. This offers far more modelling capabilities than Visual Studio, and has support for C++, C#, Java and a host of other languages. And yes, it can generate class and sequence diagrams from source and binary code (binary requires the second-cheapest license).
Generating a Sequence Diagram is an Ultimate Feature.
In Visual Studio Ultimate, generate a sequence diagram to help you
visualize and understand how the code implements a particular method.
A sequence diagram describes an interaction between objects as a
series of lifelines and messages. Lifelines represent instances of
objects, and messages represent method calls between those objects.
You can generate sequence diagrams from Visual C# .NET or Visual Basic
.NET code.
Class diagrams are a standard feature of Visual Studio Professional.
Not 100% about professional, but in Ultimate it is under Architecture -> New Diagram
Right click on your function and choose option "Generate Sequence Diagram" VS 2012

How can I generate UML diagrams from C# code written in Visual Studio 2012 into Visio 2010?

I am trying to find a way to generate UML diagrams (sequence diagrams, class diagram, etc) from my C# code written in Visual Studio 2012.
I saw a link on http://office.microsoft.com/en-us/visio-help/about-reverse-engineering-code-to-the-uml-HP001208803.aspx that I could bring my Visual Studio project into Visio.
But its first part where it says "In the Visual Studio environment, reverse engineering is activated from a command on the Project menu." doesn't work for me because I cannot find a reverse engineering option under the Project menu.
How can I generate UML diagrams from C# code written in Visual Studio 2012 into Visio 2010?
Microsoft no longer considers Visio to be a software engineering tool. There was a version known as "Visio for Enterprise Architects", which had this integration with Visual Studio. It was available with the highest-end edition of Visual Studio.
I believe it was last supported with Visual Studio 2005, though that might have been 2003.
Visual Studio Ultimate now has its own built-in UML features which do not rely on Visio.
Blast from the past. It's been a while since I've reverse engineered anything into UML so my knowledge may be outdated.
In any case, as far as I remember, code reverse engineering using Visio is a Visio feature not a Visual Studio feature, thought some versions of Visual Studio have their own modelling features.
In order to use Visio reverse engineering you need make sure the Visio UML addin is installed (it should be available in Professional and above versions of Visio, but may not be installed by default.)
Here's a rather old step by step of the process for an old version of Visio and Visual Studio. I don't think the process has changed that much (though obviously the languages supported have changed.)
In any case I never liked Visio for UML (truth be told I never liked Visio.) I rather liked Sparx System's Enterprise Architect for modelling, and their reverse engineering was quite good when I used it on .Net 2.0. I don't know how their current version copes with the newer features. I also like their "from scratch" modelling environment better.
Finally keep in mind UML is supposed to be a modelling not a programming language. I.e. it is meant to convey the high level design so the overall architecture of a solution can be more easily understood; or to model key dynamic interactions, again, so the implemented or proposed solutions to the modeled problem can be more easily understood.
Reverse engineered UML diagrams often have too much information for them to be useful, and it is difficult in any case to translate the precise semantics of a specific language into UML. You may be better off creating diagrams from scratch. Other than deployment and package diagrams, it should be understood that UML diagrams represent a high level overview or specific high level dynamic interaction representation, not an as-developed representation.
This depends on which version of the product you are using. I have Visual Studio Professional 2012 and I don't see this option. This makes sense if you look at the product features. If, however, you look at the product features of Visual Studio 2012 Ultimate, you will see UML modelling, and various other visualisation tools.
Visual Studio 2010 non-Ultimate version allowed for this UML generation by using Feature Pack, which hasn't been developed for Visual Studio 2012 yet. As Dominic mentioned (he beat me to it), Visual Studio 2012 Ultimate should allow for this though.
Visual Studio Ultimate 2012 can generate very nice sequence diagrams for C# code when you just select a member (method name); and it fails constantly at my place if I do the same for in VB code.
This in contrast to Enterprise Architect from Sparx, the most advanced CASE tool for UML and other modelings AFAIK.

Design tool for ASP.Net Pages

I am looking for some tool so that I can design my web pages(layout, color etc...). Does anything exist like that? (Other than Visual Studio, Dreamweaver...)
(I dont want to write css for now)
Dreamweaver I hear helps with that. I use Visual Studio and create CSS files.
Dreamweaver: http://www.adobe.com/products/dreamweaver/
Visual Studio: http://www.microsoft.com/exPress/download/
How about Visual Web developer? You can download the express edition for free
Visual Studio Express (Free), Expression Web and lots more . Do you have any particular requirement?
Tools used to create the design are usually Adobe Illustrator, Photoshop or equivalents, these will help create the images and can build basic layouts.
You can use Dreamweaver or equivalent to build layouts but if you are doing a lot of databinding you may want to use visual studio too.

Categories

Resources