Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio hangs after changes in a XAML file

I recently got into a strange problem, it seem to have happen randomly.

When I make changes inside a XAML-file (It can be anything, change text in a button, change color of background etc.) my visual studio hangs when starting my program.

Does anyone know how to fix this really annoying problem?

like image 272
Tokfrans Avatar asked Feb 01 '14 22:02

Tokfrans


2 Answers

I posted a thread about this on MSDN's forum too, and I got an answer which did the trick:

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

Don't really know why but this made it work again! So if anyone has been experiencing this problem, try the solution above.

EDIT:

Link to the answer on MSDN

like image 114
Tokfrans Avatar answered Sep 19 '22 19:09

Tokfrans


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

A tip from that page that helped in my case ...

Disabling effects rendering (the fx button at the bottom left of the xaml editor) caused a significant performance boost.

Also, deleting the .suo file can sometimes fix a lot of Visual Studio problems. In VS2015 just delete the .vs folder at the root of the solution, that's where the .suo file lives.

like image 27
CAD bloke Avatar answered Sep 21 '22 19:09

CAD bloke