Skip to main content

A Little Look At Visual Studio 2012

 

 

 

Well, this is my first blog using Geegswithblogs and I want to share some new features of Visual Studio 2012 which is a great tool and comes with lots of new improvements on IDE. So lets me share some of the new features without spending more time.

 

Look And Feel

Look and feel has improved drastically when compared with its earlier version of Visual Studio 2010. You will feel some kind of freshness with this new IDE look and feel. Microsoft has even decided to change old emblem with new one to infuse new freshness into the IDE. Even icons such as “Save” , “Open File” , “New Project” etc. has been changed.

 visualstudioide

 

Application Round Tripping

Earlier when you open project in new version of Visual Studio , it used to convert project to the newer version with wizard option, and going back to older version was very challenging. Now with the release of Visual Studio 2012 , you can open Visual Studio 2010 project with Visual Studio 2012 and it wont covert it to  and whenever you want , you can switch back or open project with Visual Studio 2010 without any issues. This is called round tripping.  With this , one team can work on Visual Studio 2010 as well as on Visual Studio 2012.  One thing need to be noted here, only project from Visual Studio 2010 SP1 can be round tripped and projects targeting .Net 2.0 to 4.0  and Silverlight  4 to 5 can be round tripped.

Open Visual Studio 2010 project using Visual Studio 2012 and notice the Target Framework , which will be set to .Net Framework 4.0. This is possible because of Application Round Tripping functionality.

applicationroundtripping

 

Application Code Clones

When application grows, developers tends to copy existing codes from one module to another modules, which sometimes leads to bugs in the application, now with the help of Visual Studio Code Clone, you can find out the list of code clones.

Look at following screen shot, I have created one simple original class Employees with a single method GetListOfEmployees(), then I copied same code to create class Orders and Products, then with the help of code clones(select block of code which you want to search , right click and click on “Find Matching Clones in Solution”) I tried to search the list of code cones, which found 2 matches as shown in the screen shot.

 

 

image

You can compare two code snippets to check the modification made to the original code

image

Comments

Popular posts from this blog

Installing Visual Studio 2012 with Update 2 CTP4

  Brian Harry has announced release of Visual Studio 2012 Update 2 CTP4 , this release contains significant improvements compared with other 3 releases and this is the final CTP release.  This weekend I have decided to refresh my environment with this latest Visual Studio 2012 Update 2 CTP4 release. Before I start, let me give some details on what’s new in Visual Studio 2012 Update 2 CTP4. Backup and restore Power Tool Preserve Configuration on Upgrade Servicing in High Availability SQL Environments (SQL Always On) Customizable kanban columns Visual Studio Git Extension You can complete details of new features here , you can download Visual Studio 2012 Update CTP4 from here http://go.microsoft.com/fwlink/?LinkId=273878 . My development environment setup (Note :this is my personal development environment setup and does not guarantee security or other features ) Application Tier : Windows Server 2012 Data Center Build 9200 Build Controller And Agent : Windows Server 2012 Da

Unwanted Usage of ‘var’ Keyword in c#

Since the introduction of ‘var’ keyword in C# 3.0, lots of developers started using it very large scale mode. I have done code reviews of lots of projects since the introduction of ‘var’ keyword and the trend of ‘var’ keyword is in usage of lots projects, and one thing what I noticed is that, ‘var’ keyword has made developer’s life much easier. If you are from a VB 6.0 background, usage of ‘var’ keyword was strictly prohibited only to certain places, developer should not get confused themselves with ‘var’ keyword from VB 6.0 or in JavaScript which both are totally unrelated. The main purpose behind ‘var’ keyword in C#, is to use it when the type in unknown. For example, I have a method which returns CustomerDetails and it contains information such as Customer ID, CustomerID,CustomerCity,Zip etc. which has different data types. Usage of ‘var’ keyword at everyplace makes code very difficult for other developers to understand. For example, a developer wants to check employee stat

Team Foundation Server

Team Foundation Server Being in a software industry and specially those who are closely working with Microsoft technology no need to explain what is Team Foundation Sever (TFS). Let me explain in brief what is Team Foundation Server (TFS) and the advantages associated. Team Foundation Server is a source control, project management tool, bug tracking tool, change management, build automation and so on … TFS has number of inbuilt functionalities if used in a proper way leads to a project success. TFS enables organizations to manage applications throughout the IT lifecycle. Source Control Most of the organization uses Visual Source Safe (VSS) as a source control, TFS is an advanced source control which allows user to manage work items in a systematic way, and e.g., TFS administrator can set a policy while performing check-in and check-out operations. Following screen shot shows the policy warning if it’s not been satisfied. TFS can be integrated with Visual Studio;