Thursday, April 25, 2013

ASP.NET and Web Tools 2012.2 Update


ASP.NET MVC developers, have you had a chance to try the ASP.NET and Web Tools 2012.2 (see Release Notes also) update yet?

If not, you really should. Whilst the article linked above will cover everything if you read through it, I'll just go over a few of my favourite features from it.

First and foremost, if you've already got Visual Studio, I'd recommend downloading the offline installers of the tool. You need to get the base package, and then the extension for your version of Visual Studio. The Web Platform Installer version appeared to download VS2012 Express for me which I really didn't want.

Download ASP.NET and Web Tools 2012.2 Update: First Package (Required), and then the extension for either Visual Studio 2012 Full Version, or Visual Web Developer Express.

My favourite features:

LESS Intellisense / Highlighting Support
This should be a given as to why it's made my (and probably anyone elses) favourite list. LESS is CSS, but nicer to write. It stills ends up as CSS but gives your editing and source code experience a much better feel. Think of it like TypeScript, but for styling. If you're still unsure of what it is - check out lesscss.org, the official website. The editor support is great, you get to see the converted CSS in there whilst you're typing up your LESS in a side-by-side half/half view if you also install Web Essentials 2012.

If you start writing LESS, you may want to check out my code for ASP.NET LESS Bundling and Minification.
SignalR available by default
SignalR is a cool tool for writing dynamic websites that need content updating. If you're a veteran web developer, you're probably used to using AJAX and polling for any updates. Well, stop it. SignalR does the same, and more, and moreover supports the new Web Socket technology found in all modern browsers to make things even faster (and some server side niceties!). Don't worry, it falls back to AJAX for the older browsers too.

Now that it's included with ASP.NET by default, there's virtually no reason not to use it.
Paste JSON as classes
This is cool. Really cool. Edit -> Paste Special -> Paste JSON as class. Give it a try with one of the JSON Examples if you don't have any to hand, and you'll see that it's cool. It will recursively generate strongly typed objects for each element in the JSON you provide to it. It may seem like something small, but if you're working with external APIs a lot, this is a lifesafer.
Hope you enjoy the ASP.NET updates as much as I am right now :)

No comments:

Post a Comment