close
Skip to main content
New: Stack Overflow For Agents. The next generation of knowledge exchange. Learn more

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Typing in XAML file causes Visual Studio to completely lock up

I open a XAML file. Start editing a control. I want to type in the following simple property setting:

  Background="Transparent"  

That's it. But after typing at most 3 characters, Visual Studio completely locks up never to come back. (I just left it running all weekend and it was still locked up)

If I paste the line into the text editor there is no lockup. But typing it locks up Visual Studio every time.

Here are the things I have tried to fix it. None of them have worked (Note: I always have the XAML designer disabled, even before this happened so I did not need to disable it)

  • I've tried individually disabling extensions, particularly Resharper and Visual Assist.

  • I have tried manually disabling every single extension that I have installed.

  • I've tried disabling all intellisense options that can find in Tools >> Options.

  • I've tried deleting the .vs subfolder where my solution file lives

  • I've tried deleting the component model cache, both manually from the folder where it lives and using Mads Kristiansen's "Clear MEF Component Cache" extension

  • I've tried starting Visual Studio from the command line with the /safemode switch

  • I've tried starting Visual Studio from the command line with the /resetsettings switch

  • I've tried using the Visual Studio installer to repair the installation

  • I was told to "delete the .suo file" but I don't have one because i use the new .SLNX solution file format.

  • I've tried (on a suggestion from .AI) to go into the .csproj file and add the following lines (which did not help)

<DisableXamlTypeBackgroundCompilation>true</DisableXamlTypeBackgroundCompilation> <XamlDebuggingInformation>False</XamlDebuggingInformation>

Does anyone have any idea what will fix this?

Answer*

Draft saved
Draft discarded

Required fields are marked with *

Cancel