In last post we saw few good enhancements in VS 2010. In this post we will explore some exciting new capabilities for Architects in Visual Studio 2010 Ultimate.
If you are using Visual Studio 2010 Ultimate, you will notice Architecture Menu on top. This menu gives architects plenty of options, from modeling their solutions to generating dependencies among your existing projects and the best part of it is that it allows you to even validate your code based on model diagram (H). BUT! for today! We will cover “Generate Dependency Graph” feature in this post.
The primary advantage of generating dependency graph is to visualize your existing software. This is particularly important in scenarios where you are working in an existing software and want to dig dependencies among assemblies/namespaces/classes etc. We know one thing that software are becoming more complex with time and therefore we need better tools and technologies to understand those complex software solutions.
So lets go ahead and give this feature a try!
If we select the option of Generate Dependency Graph –> By Assembly, after few seconds of processing it will show you some kind of web 🙂
The lines depicts the dependency of one assembly to another and the bold lines shows higher number of references or more dependency on other assembly. You can also expand or collapse these assemblies. Interestingly if you double click on any line (representing reference and dependency), It will gives you further option to select the level of detail between two assemblies as shown in image below:
If we select to include Assemblies and Methods , then it will show detail level diagram with assembly containing Methods and their dependency on other assembly’s methods. Cool isn’t it? 🙂
So if you are working on an existing software and you want to understand the code and interaction of different projects and classes, this feature is a real blessing for you 🙂
Last time we saw some new capabilities in VS 2010 due to the new WPF editor. We also saw about extensions in VS 2010. So let’s explore some more features of Visual Studio 2010, just for fun 🙂
One ordinary extension that you may like is Visual Studio Color Theme Editor. You can download this extension from Extension Manager (Tools –> Extension Manager). You can search it from online gallery.
Once you download and install it, VS will prompt you to restart and after that you will notice a Theme item in menu bar. What this extension allows you to do is to change the theme of Visual Studio either by selecting one of the pre-defined theme or customizing on your own one 🙂
I know, as a developer, you may not really care for Visual Studio colors 😉 but guess what? I want to share another feature with you, which I believe many people do not utilize really and that is Line Numbers in Text Editor. By default, Line numbers are not visible in your text editor. You can turn them on by selecting the option of Line Numbers in Option Window (Tools –> Options) as depict below:
Enabling Line numbers will help you in tracking especially when you refer to errors on particular line number in Error List Window.
Another great feature of VS 2010 IDE is the Call Hierarchy through which you can visualize all calls to and from a selected method. To view Call Hierarchy, Right click on a method or property and select “View Call Hierarchy” item.
Not only it shows all the methods and properties that Calls To and From the selected method but it also shows further options when you right click on any of the node such as “Go to Definition” etc.
This feature is really remarkable from the programmers’ perspective and I hope you will like it too!
That’s all for now. Have a great day!
Within last few weeks we have organized two events under user groups. One under the umbrella of DevNext, in particular of NED University students and another one under “Emerging .NET Devs” for Industry Professionals. I’m gonna paste some details from their respective blogs:
Technical Discussion on Windows Development using C++ was being held at N.E.D. University for Second Year students on June 1, 2010 specifically to provide them help for developing their Object Oriented Programming Project. We had invited Mr.Shoaib Surya, Lead Software Engineer at Folio3 (Pvt.) as a volunteer speaker for this session.
To continue reading, please visit DevNext site.
On 8th June 2010, we organized another User Group meeting on “Workflow Foundation v4”. We would like to thank Mr. Muhammad Ali Sakhi, Microsoft Certified Trainer, for taking out time and delivering a session at the meeting on Workflow Foundation v4 with Visual Studio 2010. We would also like to thank attendees for making this event very successful. The majority of the participants were from Industry.
To read further, please visit Emerging .NET Devs UG Blog.
I hope you all have enjoyed the session, please feel free to provide us feedback to help us improve in future and stay tuned for more cool events on 10-4.