Channels ▼
RSS

.NET

What's New in Visual Studio 11


Support for Exploratory Testing and Enhanced Support for Unit Testing

Unit testing is a methodology of testing individual units of code to determine if those individual units work correctly. The term "units" refers to smallest units of testable code — generally a function or method. Visual Studio 11 provides support for enhanced unit testing and exploratory testing. Exploratory testing is a practice in which you test your code without the need of a formal test planning. You can also manage your exploratory testing sessions through the Microsoft Test Manager. It allows you to generate bug reports and the steps or actions that led to a failed test. Such steps are included in the bug report. Visual Studio 11 extends the ALM support introduced in Visual Studio 2010 with a better coverage of the application's lifecycle and with the introduction of additional roles that are critical to a project's success. Now you can use Visual Studio 11 to generate test cases that depend on the sequence of steps that caused the bug — a great feature indeed. You can learn more from the vNext ALM roadmap.

Enhanced Support for Application Lifecycle Management (ALM)

Application Lifecycle Management (ALM) enables you to better manage the entire lifecycle of an application using a set of proven processes and tools. The basic principles of ALM include, collaboration, feedback, transparent agile processes. Such tools are integrated in the Visual Studio IDE. Application Lifecycle Management support in Visual Studio has been a talked about feature for quite some time. It was introduced in Visual Studio 2010. The Visual Studio vNext ALM white paper states: "Software should be viewed as a living asset, with the Application Lifecycle representing a continuum across the connected activities of a products lifetime, spanning: the identification of business needs, software construction, release management and monitoring, support and maintenance, through to the eventual retirement of the solution." Visual Studio 11 introduces Silverlight-powered Speakflow that you can use to follow the application cycle with better transparency.

You can download Visual Studio 11 Application Lifecycle Management Virtual Machine and explore this technology.

Support for IIS Express as the Default Integrated Web Server

ISS Express is a lightweight Web server. With Visual Studio 2010 SP1, you can build and run your applications using IIS Express or with Cassini, which was the default Web server for Visual Studio 2010 SP1.

In Visual Studio 11, the default Web server is IIS Express. If you navigate to Tools | Options | Projects and Solutions, and then Select "Web Projects" in the Visual Studio 11 IDE you will see that the default Web server integrated in Visual Studio 11 is IIS Express for file based Web sites and projects. However you can still change the default Web server to Cassini by changing the configuration settings.


Figure 1: Changing the default Web server in the Visual Studio 11 IDE.

Support for Smart Tasks

Visual Studio 11 introduces a new feature called a smart task, which can be used to ease complex tasks and commonly used features. This feature wasn't present in the earlier versions of Visual Studio. You can now configure controls from the IDE itself (i.e., the HTML editor). So you no longer need to move back and forth between source and design view of a control to configure.

Support for Local, Simulator, and Remote Debugging

Using Visual Studio 11 you can now debug your metro applications either locally or remotely. What you need to do is select Local machine or Remote on the Target Device option of Project Properties | Debug.

Event Handler Generation from Markup

Event handlers are methods that are triggered on occurrence of an event. If you use WPF and XAML, Visual Studio allows generating event handlers from your controls at design time in the XAML editor. You can generate event handlers for your controls from the XAML markup. But what about ASP.NET controls? In Visual Studio 11, you can now generate event handlers for ASP.NET Server Side controls the same way you do in XAML.

Support for Creating User Controls from Web Pages

One of the biggest advantages of user controls is reusability. Consider a situation where you have one or more Web pages that you would need elsewhere in your project — reuse the design. There is a new feature introduced in Visual Studio 11 — the ability to extract user controls out of your Web pages. This is a great feature indeed. You can now simply select the portion of HTML markup that you would like to be extracted to a user control. To do this, you would need to go to your HTML markup, select the needed markup code, right-click, and select the option "Extract to User Control" from the list of options displayed.

Conclusion

Microsoft Visual Studio 11 is the next major upgrade to the Visual Studio IDE with improvements for increased developer productivity. Visual Studio 11 offers a next-generation IDE that provides simple, easy to use, enhanced IDE features, performance improvements through better responsiveness, reduced memory utilization, and lots of new features and improvements in the editor. Like Microsoft .NET Framework 4.5, the changes are pervasive. No one feature makes an upgrade mandatory, but all the features taken together make the upgrade highly advisable.


Joydip Kanjilal is a frequent author on Microsoft technologies. He has won the Microsoft MVP Award for the last five years.


Related Reading


More Insights






Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

 
Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.
 

Video