Sam Stange
Sam Stange

Reputation: 454

Visual Studio 2012 RC designer does not recognize xaml for a Windows Metro app

I recently installed the release candidate for Visual Studio 2012 and the release preview for Windows 8. I lost xaml intellisense and VS treats xaml as an XML document. Does anybody else have any ideas where to start to fix this problem?

Upvotes: 0

Views: 2579

Answers (2)

Sam Stange
Sam Stange

Reputation: 454

I simply re-installed Visual Studio 2012 RC. I'm not willing to attempt to reproduce the problem, but I believe this is what I did: Upgrade windows 7 professional with Visual Studio 2010 installed to Windows 8 professional, Installed Visual Studio 2012 RC, Installed Windows 8 SDK.

My symptoms include:

  1. Under tools, options, text editor, no xaml option.
  2. When I tried to view a xaml page via designer, the property window displayed everything as an XML document
  3. I could not view the designer in Visual Studio (I could in Blend), it would not let me and would show the xaml mark-up instead.
  4. No intellisense.

Re-installing didn't take too much time, maybe 20-30 minutes.

Upvotes: 1

Adam LaPitz
Adam LaPitz

Reputation: 1

Try right clicking on a XAML file in the Solution Explorer then choosing "Open with". In there choose "XAML UI Designer", hit "Set as Default" then hit "Ok". This should force VS to use the XAML Designer.

Upvotes: 0

Related Questions