Introduction

Every time we get close to a new release of Microsoft Visual Studio, we can feel the excitement in the developer community. This release of Visual Studio is certainly no different, but at the same time we can feel a different vibe. In November 2009, at the Microsoft Professional Developer Conference in Los Angeles, participants had the chance to get their hands on the latest beta of this Visual Studio incarnation. The developer community started to see how different this release is compared to any of its predecessors. This might sound familiar, but Visual Studio 2010 constitutes, in our opinion, a big leap and is a true game changer in that it has been designed and developed from the core out.

Looking at posts in the MSDN forums and many other popular developer communities also reveals that many of you—professional developers—are still working in previous versions of Visual Studio. This book will show you how to move to Visual Studio 2010 and try to explain why it’s a great time to make this move.

Who Is This Book For?

This book is for professional developers who are working with previous versions of Visual Studio and are looking to make the move to Visual Studio 2010 Professional.

What Is the Book About?

The book is not a language primer, language reference, or single-technology book. It’s a book that will help professional developers move from previous versions of Visual Studio (starting with 2003 and moving on up). It will cover the features of Visual Studio 2010 through a sample application. It will go through a lot of the exciting new language features and new versions of the most popular technologies without focusing on the technologies themselves. It will instead put the emphasis on how you get to those new tools and features from Visual Studio 2010. If you are expecting this book to thoroughly cover the new Entity Framework or ASP.NET MVC 2, this is not the book for you. If you want to read a book where the focus is on Visual Studio 2010 and on the reasons for moving to Visual Studio 2010, this is the book for you.

How Will This Book Help Me Move to Visual Studio 2010?

This book will try to answer that question by using a practical approach and by going through the new features and characteristics of Visual Studio 2010 from your point of view—that is, from the view of someone using Visual Studio 2005, for example. To be consistent for all points of view and to cover the same topics from all points of view, we decided to build and use a real application that covers many areas of the product rather than show you many disjointed little samples. This application is named Plan My Night, and we’ll describe it in detail in this Introduction.

To help as many developers as we can, we decided to divide this book into three parts:

  • Part I is for developers moving from Visual Studio 2003

  • Part II is for developers moving from Visual Studio 2005

  • Part III is for developers moving from Visual Studio 2008

Each part will help developers understand how to use Visual Studio 2010 to create many different types of applications and unlock their creativity independently of the version they are using today. This book will focus on Visual Studio, but we’ll also cover many language features that make the move even more interesting.

Each part will follow a similar approach and will include these chapters:

For example, Part I, includes a chapter called Chapter 3. Likewise, Part II, includes a chapter called Chapter 7.

Designing the Look and Feel

These chapters will focus on comparing how the creation of the user interface has evolved through the versions of Visual Studio. They pay attention to the design surface, code editor, tools, and various controls, as well as compare UI validation methods. These chapters also tackle the topic of application extensibility.

Business Logic and Data

These chapters tackle how the application is structured and demonstrate the evolution of the tools and language features available to manage data. They describe the different application layers. They also show how the middle tier is created across versions and how the application will manage caching the data, as well as how to manage getting data in and from the database.

Debugging the Application

These chapters showcase the evolution of all developer aids and debugger tools, as well as compare the different ways to improve the performance of an application. They also discuss the important task of unit-testing your code.

Deploying Plan My Night

Part I, for developers using Visual Studio 2003, also includes one extra chapter, Chapter 4. This chapter goes through the different ways to package, deploy, and deliver your application to your end users. The topic of updating and sending new bits to your customers is also discussed. We feel that Parts II and III, for developers using Visual Studio 2005 and Visual Studio 2008, respectively, didn’t require a chapter on deployment.

What Is Plan My Night?

Plan My Night (PMN) is an application that is self-describing, but just to make sure we’re on the same page, here’s the elevator pitch about PMN:

Plan My Night is designed and developed to help its users plan and manage their evening activities. It allows the user to create events, search for activities and venues, gather information about the activities and the venues, and finally share or produce information about them.

As the saying goes, a picture is worth a thousand words, so take a look at the Plan My Night user interface in Figure 1.

PMN’s user interface

Figure 1. PMN’s user interface

In its Visual Studio 2010 version, Plan My Night is built with ASP.NET MVC 2.0 using jQuery and Ajax for UI validation and animation. It uses the Managed Extensibility Framework (MEF) for extending the capabilities of the application by building plug-ins: for sharing to social networks, printing, e-mailing, and so on. We have used the Entity Framework to create the data layer and the Windows Server AppFabric (formerly known as codename “Velocity”) to cache data in memory sent to and obtained from the Microsoft SQL Server 2008 database.

We figure that three pictures are better than one, so take a look at Figure 2 for a diagram displaying the different parts and how they interact with each other and at Figure 3 to see the different technologies used in building Plan My Night.

Plan My Night components and interactions

Figure 2. Plan My Night components and interactions

PMN 1.0 and the different technologies used in building it

Figure 3. PMN 1.0 and the different technologies used in building it

Why Should You Move to Visual Studio 2010?

There are numerous reasons to move to Visual Studio 2010 Professional, and before we dive into the book parts to examine them, we thought it would be good to list a few from a high-level perspective (presented without any priority ordering):

  • Built-in tools for Windows 7, including multitouch and “ribbon” UI components.

  • Rich, new editor with built-in Windows Presentation Foundation (WPF) that you can highly customize to suit how you work. Look at Figure 4 for a sneak peek.

  • Multimonitor support.

  • New Quick Search, which helps to find relevant results just by quickly typing the first few letters of any method, class, or property.

  • Great support for developing and deploying Microsoft Office 2010, SharePoint 2010, and Windows Azure applications.

  • Multicore development support that allows you to parallelize your applications, and a new specialized debugger to help you track the tasks and threads.

  • Improvements to the ASP.NET AJAX framework, core JavaScript IntelliSense support, and the inclusion in Visual Studio 2010 of jQuery, the open-source library for DOM interactions.

  • Multitargeting/multiframework support. Read Scott Guthrie’s blog post to get an understanding of this great feature: http://weblogs.asp.net/scottgu/archive/2009/08/27/multi-targeting-support-vs-2010-and-net-4-series.aspx.

  • Support for developing WPF and Silverlight applications with enhanced drag-and-drop support and data binding. This includes great new enhancements to the designers, enabling a higher fidelity in rendering your controls, which in turn enables you to discover bugs in rendering before they happen at run time (which is a great improvement from previous versions of Visual Studio). New WPF and Silverlight tools will help you to navigate the visual tree and inspect objects in your rich WPF and Silverlight applications.

  • Great support for Team Foundation Server (TFS) 2010 (and previous versions) using Team Explorer. This enables you to use the data and reports that are automatically collected by Visual Studio 2010 and track and analyze the health of your projects with the integrated reports, as well as keep your bugs and tasks up to date.

  • Integrated support for test-driven development. Automatic test stub generation and a rich unit test framework are two nice test features that developers can take advantage of for creating and executing unit tests. Visual Studio 2010 has great extensibility points that will enable you to also use common third-party or open-source unit test frameworks directly within Visual Studio 2010.

Visual Studio new WPF code editor

Figure 4. Visual Studio new WPF code editor

This is just a short list of all the new features of Visual Studio 2010 Professional; you’ll experience some of them firsthand in this book. You can get the complete list of new features by reading the information presented in the following two locations: http://msdn.microsoft.com/en-us/library/dd547188(VS.100).aspx and http://msdn.microsoft.com/en-us/library/bb386063(VS.100).aspx.

But the most important reason for many developers and enterprises to make the move is to be able to concentrate on the real problems they’re facing rather than spending their time interpreting code. You’ll see that with Visual Studio 2010 you can solve those problems faster. Visual Studio 2010 provides you with new, powerful design surfaces and powerful tools that help you write less code, write it faster, and deliver it with higher quality.

Errata and Book Support

We’ve made every effort to ensure the accuracy of this book and its companion content. If you do find an error, please report it on our Microsoft Press site at Oreilly.com:

  1. Go to http://microsoftpress.oreilly.com.

  2. In the Search box, enter the book’s ISBN or title.

  3. Select your book from the search results.

  4. On your book’s catalog page, under the cover image, you’ll see a list of links.

  5. Click View/Submit Errata.

You’ll find additional information and services for your book on its catalog page. If you need additional support, please e-mail Microsoft Press Book Support at .

Please note that product support for Microsoft software is not offered through the addresses above.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.21.12.140