Software Development

.NET 4.5 and Visual Studio 11 Beta: What you need to know

After wading through release notes and developer blogs, Justin James distills what he learned about what .NET 4.5 and Visual Studio 11 Beta have to offer.

Amongst all of the hoopla around the Windows 8 Consumer Preview launch at the end of February, it was easy to miss the release of the Visual Studio 11 Beta and updates to other .NET technologies. While there isn't too much more here that wasn't known beforehand (the ASP.NET Web API is the really big announcement), and this release of .NET is supposed to be 4.5 and not a giant update, there are still a number of things to know about it. I've gone through all of the various blogs and release notes about it to highlight the most "need-to-know" items in .NET 4.5 and Visual Studio 11 that are currently being talked about.

.NET Framework and CLR

Visual Basic

Visual Basic gets a few minor upgrades and two really big upgrades: Async support and Iterators.

F#

F# adds a ton of support for Web services (OData, WSDL) and other data connectivity options (SQL, resource files, DBML files). It also gets LINQ and auto-implemented properties, which will go a long way in making it on par with C# and Visual Basic. IntelliSense in Visual Studio is much improved as well. The full details are here.

Parallelism

The Async system has been significantly improved. In addition, using the Await system is much easier. Async/await are being made full-fledge members of both C# and Visual Basic. Stephen Toub has the full details.

ASP.NET

ASP.NET Web API

The ASP.NET Web API is a new framework for creating RESTful services using a model and controller pattern familiar to MVC developers. It can produce XML or JSON based on the "Accept" header of the request.

The real question is: What advantage does the ASP.NET Web API offer over the WCF Data Services system? It looks like the Web API wins out over WCF Data Services in two major areas: ease of consumption from jQuery clients and the relative simplicity of creating services. The WCF system always had that "kitchen sink" feel that enterprises need but is too heavy for most developers. The Web API is a much more lightweight, and its few steps from idea to working service model that developers will appreciate. While the beta does not support it, there is talk that the final version will support OAuth.

Front end improvement

ASP.NET MVC 4 will be providing mobile templates for projects, and it will support jQuery Mobile. In addition, support for minification and bundling will be built right in to create a smoother and faster experience for users, particularly for sites that use a lot of extra content or on devices with slower connections (like mobile devices). There is now support for the Web Sockets system, which can yield rich rewards for developers who take the time to learn to work with it.

Visual Studio 11

Web tools

One of the more exciting items in Visual Studio 11 is the Page Inspector that connects the dots between the HTML code in the IDE and what is rendered on the screen -- like a Firebug that can reach back to the source code on the server. It lets you make changes in the code and see them reflected in the browser in real time too. The JavaScript, CSS, and HTML editors are all much improved. IIS Express has been made the default Web server, so your applications will run in an environment that is much more like your actual deployment environments.

J.Ja

Keep your engineering skills up to date by signing up for TechRepublic's free Software Engineer newsletter, delivered each Tuesday.

About

Justin James is the Lead Architect for Conigent.

3 comments
jockey7968
jockey7968

Cool, but the cost of hosting for ASP.NET is always make us considering

Justin James
Justin James

... in the next few weeks. Glad you liked the article! I will also be putting together a "first Windows 8 application" piece soon. J.Ja

richard.warren
richard.warren

Justin, you did a great job covering the change to the languages and client tool, but the VS11 was about more than just the developer. When can we expect another great article that talks about the changes to Team Foundation Server and the Virtual Lab Manager? The impact of Hyper-V on the Windows 8 client has got to have an impact too...looking forward to reading about them soon. Thanks, Richard