Visual Studio freezes after changes to the XAML file

I recently got into a weird problem, it seems like this happened by accident.

When I make changes to the XAML file (it can be anything, change the text with a button, change the background color, etc.), my visual studio freezes when my program starts up.

Does anyone know how to fix this really annoying problem?

+10
c # visual-studio-2013 wpf xaml
source share
7 answers

I also posted a thread about this on the MSDN forum, and got a response that did the trick:

Obviously, I had to delete the Project Solution file and then run the .csproj file.

I don’t know why, but it made him work again! Therefore, if someone has encountered this problem, try the solution above.

EDIT:

MSDN Response Link

+8
source share

I had the same problem and for me this caused Resharper . Try pausing Resharper and removing all third-party add-ons if that doesn't help (resharper, ghostdoc, etc.).

Also try starting VS with the / SafeMode flag and see if it works properly.

+1
source share

Vote here: https://visualstudio.uservoice.com/forums/121579-visual-studio-2015/suggestions/2204137-improve-the-xaml-designer-performance

The advice from this page that helped me in my case ...

Disabling the effects display (fx button in the lower left corner of the xaml editor) caused a significant increase in performance.

Also, deleting a .suo file .suo sometimes fix many Visual Studio problems. In VS2015, simply delete the .vs folder in the root of the solution where the .suo file .suo .

0
source share

In my case, I deleted all the generated files along with the .db and .opendb files, and the xaml editing stopped to hang up.

0
source share

This is an old question, I know, but since others have similar problems in older and newer versions of Visual Studio, maybe the following workaround may occur (tested on three PCs, VS 2017, Windows 10):

  • Open a XAML project in Visual Studio
  • Open Windows Task Manager
  • Search Microsoft Visual Studio XAML Designer (if not, try opening the XAML file in VS)
  • Right click and select Properties
  • Select the Compatibility tab.
  • Below compatibility mode check Run this program in compatibility mode for:
  • Choose Windows 7

Screenshot

I have not had any crashes / hangs since the compatibility settings were changed.

Good luck

0
source share

I got the same problem. VS2015 will either freeze for about 40 seconds, or sometimes crash when closing the XAML constructor. After removing the CodeMaid extension , the problem disappeared.

0
source share

I tried another project that I had, and I could open XAML and run my project.

Therefore, I decided that this was not a visual studio, but my real project.

Removing bin , obj and vs from each project worked for me.

Then open again, rebuild, and now I can open XAML again and start the project normally.

0
source share

All Articles