Software Development

What's new in Visual Studio 2010 and .NET 4

Justin James highlights some of the features in Visual Studio 2010 and .NET 4 and explains why he thinks Visual Studio 2010 looks like a worthwhile upgrade.

Throughout the last few weeks, I've been doing a lot of reading and talking to people to find out what they like about Visual Studio 2010 and what incentive there is to upgrade to it. I spent a small amount of time with the pre-release versions (but only for basic work), and I did not see the huge differences. But after closer investigation, Visual Studio 2010 does indeed look like a worthwhile upgrade.

One of the first things to note is that Visual Studio 2010 allows you to write code against multiple versions of the .NET Framework and CLR; this means that, even if you still need to work on .NET 3.X or 2.0 code, you can upgrade from Visual Studio 2008 to Visual Studio 2010 and still be able to work on .NET 3.X applications and .NET 2.0 applications.

Some of the features in Visual Studio 2010 and .NET 4 that look really useful are:

One person I talked to is Brian Hitney, a Microsoft Developer Evangelist who mainly works with ASP.NET. He told me that it is much more pleasant to work in ASP.NET in Visual Studio 2010. Something he said that stuck out is, "you don't feel like you're fighting the system." One reason why I never really liked ASP.NET much is that it always felt like I was fighting the system to do what I wanted it to do. Brian pointed out that in ASP.NET 4, you can finally control the IDs that WebControls get, and the web.config files are much smaller and manageable now.

Another person I spoke with is Tim Huckaby, an MVP and the CEO of InterKnowlogy, a company that specializes in WPF applications. He had some interesting insights to share, since his perspective is that of someone who is using cutting edge technologies in real-world scenarios. He drove home that the WPF and Silverlight story is totally changed now; there is substantially less need for Blend, and you can do applications that use the basics of XAML without Blend at all (Visual Studio 2008 supported XAML, but did not have a good visual designer).

In addition, Visual Studio 2010 ships with the Metro theme, which is what Windows Phone 7 uses. This means that you can start writing apps today that will look like apps will look on Windows Phone 7; this is great news if you are planning on supporting Windows Phone 7 when it releases. He also stated that it is much easier to work with WCF.

Tim mentioned that Visual Studio 2010 is much, much better at working with SharePoint; in fact, there is no longer a separate SharePoint development tool. While I have never worked with SharePoint on the development side, I've noticed that SharePoint development has quietly become a huge market in the last few years.

Visual Studio is also the first version to ship since ASP.NET MVC, ADO.NET Data Services (aka OData), Silverlight, and a whole host of other technologies have been released. In the past, support for these other technologies was spotty, in CTP status, or non-existent; now, Visual Studio supports them. If you pay attention to Microsoft's releases, they tend to follow a pattern of "revolution" followed by "consolidation of gains." For example, Windows Vista changed the playing field with Aero, WPF, UAC, and a lot of other new technologies. Windows 7 refined Windows Vista and made it useful and usable. In the same vein, I always felt that some of the new technologies in Windows Vista, .NET 3.X, and Visual Studio 2008 were not well supported, implemented, or documented. Well, now it seems to be there, and properly too.

Another important note is that there is no longer the division of Visual Studio into Team editions; there is simply the Ultimate Edition, which combines all of the functionality that the Team editions had into one package. Speaking of editions, Microsoft is still offering Express editions for folks looking to experiment for free with .NET.

Summary

I think that Visual Studio 2010 has something to offer for everyone. While I have not tried out every single one of its new features, I have switched to it since it RTMed, and it has been a joy. Despite the change to using a fully WPF UI, it still feels very familiar. Other than some changes when I upgraded from the June 2008 CTP of Parallel Extensions to the version released in .NET 4 (I just needed to change a using statement and one class name), I have not had any issues transitioning a decent-sized project from .NET 3.5 to .NET 4.

I look forward to working with Visual Studio 2010; it feels like Microsoft is finally giving us the proper support for technologies that were released years ago. Take it for a test drive by downloading the Visual Studio 2010 trial versions today!

J.Ja

Disclosure of Justin's industry affiliations: Justin James has a contract with Spiceworks to write product buying guides; he has a contract with OpenAmplify, which is owned by Hapax, to write a series of blogs, tutorials, and articles; and he has a contract with OutSystems to write articles, sample code, etc.

---------------------------------------------------------------------------------------

Get weekly development tips in your inbox Keep your developer skills sharp by signing up for TechRepublic's free Web Developer newsletter, delivered each Tuesday. Automatically subscribe today!

About

Justin James is the Lead Architect for Conigent.

9 comments
nestor.narvaez
nestor.narvaez

I would add Multitouch I think that's exciting, congratulations for the post

oldbaritone
oldbaritone

but software upgrades always need to go through the budgeting and justification process. (sigh) ;-)

Justin James
Justin James

If you are a Visual Studio user, will you be moving to VS 2010 any time soon? I've already transitioned most of my development to it over the last week. J.Ja

Tony Hopkinson
Tony Hopkinson

won't be on .net4 anytime soon though. Initial reports are good, only minor glitch was it provides some hooks for source control that are only available in the latest version of TFS.

jck
jck

on if Microsoft will give me a good price upgrading my .NET Studio 2003 EA license to Team Studio 2010. If not, i'll wait til it gets cheap on Amazon.

sguser
sguser

We have already moved to VS2010 and TFS 2010. The new Scrum templates in TFS are really nice.

cmereau
cmereau

I am rewriting a 23000 LOC in a VB 6 application in VB.Net 2010. I truly enjoy all the features included in this release. Although I appreciate all the tools that were mentioned by Justin one of the features I truly like is the capabiity to analyze the code and fine tune it. We never used 2008 at work, we stayed with .Net 2005 which to me was a great improvement over 2003. 2010 has all the feattures I would ever want to use. Perhaps I will change my mind on the next version but for the time being I think this is the best release ever.

garroj
garroj

We'll be moving to VS 2010 shortly. I'm definitely looking forward to the multiple monitor support and IntelliTrace features to name a couple. (Also I heard the IntelliSense has been greatly improved) Is there any real need to keep VS 2008 installed along with 2010? (If it's even possible) Joe

Justin James
Justin James

VS 2010 and 2008 co-exist just fine. I am not sure if there are any problems with uninstalling 2008 though. I know that when I had 2005 installed, then installed 2008, then removed 2005, the 2008 install broke. The only reason I still have 2008 installed is because I use another tool that hooks into it, and I haven't spent the time seeing how to reconfigure it to look at the 2010 install directories yet. I'll be moving my personal TFS server to 2010 soon, and the "day job" TFS server to 2010 fairly soon too, provided the upgrade path is smooth. J.Ja

Editor's Picks