Web Tools 2012.2 and Web Essentials

Feb 17, 2013

Today the ASP.NET and Web Tools 2012.2 update was released. Go download it right now!

It contains a lot of new and updated Visual Studio tooling features including:

  • First class LESS editor
  • Knockout.js Intellisense
  • Paste JSON as classes
  • CoffeeScript editor
  • Mustache/Handlebars/JsRender syntax highlighting
  • Page Inspector
    • Live CSS auto-sync as you type
    • JavaScript selection mapping and callstack

Some of them are features that started their lives in Web Essentials 2012 and are now ported into an official release. Every time we move features from the experimental Web Essentials extension into the official product, we try to make the transition as smooth as possible.

However, this time we moved some substantial features that are mutually exclusive – they register the same MEF components and that leads to this rather ugly exception:

An exception has been encountered. This may be caused by an extension

This exception occurs when Web Tools 2012.2 is installed and you haven’t updated Web Essentials to version 2.5. The solution is simply to update Web Essentials. Go do that now. If you don’t have Web Essentials installed at all, you won’t get this error because then there is no conflict.

* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!

Comments (18) -

Egor
Egor Russia
2/18/2013 4:09:39 PM #

Hi Mads,

After installing new version of Web Essentials(2.5.1) and then Web Tools 2012.2, LESS files are displayed as regular text files, but solution explorer shows structure(Classes, IDs, Mixins etc) correctly.
When I try to use 'Open With', it has 'LESS Editor(Default)' selected. Uninstallation of Web Essentials does not help.

Is any way to fix it?

Thanks.

Victor
Victor Brazil
2/18/2013 5:14:27 PM #

Try starting Visual Studio with the /setup flag. (devenv /setup)
This solved the issue here.

Note: You'll need administrator privileges.

Cheers!

Egor
Egor Russia
2/18/2013 5:24:47 PM #

Unfortunately, it does not work for me.

martin
martin Panama
3/5/2013 9:08:25 PM #

Same problem for me. Less editor not working and both extensions are installed.

sebastienf
sebastienf France
3/22/2013 12:56:13 PM #

Same issue that all previous comments : in the solution explorer I have the structure of the less file, but the file itself is displayed as a "simple" text file. Runned the devenv.exe /setup with administrator privileges, nothing happened.

tkrause
tkrause Germany
2/19/2013 1:49:25 AM #

Cannot update, because visualstudiogallery.msdn.microsoft.com is down. Wink

Nick
Nick Canada
2/19/2013 6:42:59 AM #

I'm having the same problem with the no longer getting a LESS Editor. Using 'Open With' I don't even have LESS Editor in the list anymore, and looking at the change log for Web Essentials at http://vswebessentials.com/changelog it's actually showing the LESS/CoffeeScript editors as being 'Removed', so why do you list 'First class LESS editor' as one of the new features?

Nick
Nick Canada
2/19/2013 6:50:13 AM #

Apparently it was removed from Web Essentials 2012.2 and instead added to Web Tools 2012.2, installing that now. Not a lot of transparency on that though, and because of the identical version numbers I hadn't realized the two were different components.

Raj Krishnan
Raj Krishnan United States
2/20/2013 3:14:28 PM #

I tried installing the web tools 2012.2 and repeated it several times based on release notes. Still I can't find the project types. The extension says it is installed but I don't see the new project types and other features.

Doug McDonald
Doug McDonald United Kingdom
2/25/2013 1:18:00 PM #

Hi Mads, just a quick note on a similar topic. When i updated my web essentials to 2012.2 I get the following error when opening my solutions:

Could not load type 'Microsoft.Less.Core.LessMixinDeclaration' from assembly 'Microsoft.VisualStudio.Web.Extensions, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

Uninstalling web essentials allows the solutions to load and installing Web Tool 2012.2 and then web essentials afterwards sorts it. Just a heads up if it's worth adding to the list of potential exceptions.

Cheers,

Doug

Joe Delly
Joe Delly United States
2/27/2013 9:35:23 AM #

I was able to get past that error by installing the ASP.NET and Web Tools 2012.2 [http://go.microsoft.com/fwlink/?LinkId=282650].  I thought I had it installed already and VS didn't detect that a new version was available, but I can't argue with the results.  Hope it works for you too.

seo thailand
seo thailand Thailand
3/3/2013 7:14:00 AM #

Nice tools Mads ! Thanks !

mahdi talebian
mahdi talebian Iran
3/11/2013 1:11:27 AM #

great tools. thanks.

felickz
felickz United States
3/20/2013 2:56:12 PM #

Why is this a separate download and not part of the Visual Studio Extensions and Updates?

Daniel
Daniel United States
3/25/2013 11:20:38 PM #

Guys as you know Web essentials can't be installed on Express version, can we install ASP.NET and Web Tools on VS 2012 Express for Web?

It would be great if everyone get hands on cool new stuff.

@Mads, can you please add Coffee script, SCSS, TypeScript etc templates so they appear in "New File dialog"?

Valdevir
Valdevir Brazil
3/28/2013 12:37:52 PM #

teste

Valdevir
Valdevir Brazil
3/28/2013 12:37:18 PM #

Teste

Sunjay
Sunjay United States
4/1/2013 11:38:05 PM #

Does Web Essentials 2012 work with WebMatrix 3? if so how do we install the extension.  

Pingbacks and trackbacks (3)+

Comments are closed

About the author

Mads Kristensen

Mads Kristensen
Program Manager at the Microsoft Web Platform team and founder of BlogEngine.NET.

More...

Month List

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer’s view in any way.