How to make Visual Studio recognize XAML changes?

I just started with WPF, so there is probably something missing here. I have a window that I edit in VS 2010. When I change XAML manually and then run the application (F5), the window remains as before my editing, however, if I recreate and then run the application, my changes will appear.

Is there a way to get VS to recognize that I changed my XAML file and recompiled it automatically when I press F5?

+5
source share
3 answers

It turns out that my user interface project was not set up to create the configuration I selected. Although it was configured to build on Debug x86, I set the current configuration for Debug Any CPU.

+4
source

You can change the VS setting to save all files before Build / Run. Go to

Tools-> Options-> Projects and Solutions-> Build and Run

Refresh Before creation and On when projects are out of date . Save all changes and always create accordingly.

0
source

Visual Studio 2012:

  • Go to Tools → Options → Projects and Solutions → Build and Run
  • In the "On" field, when the projects are out of date, select "Always build."
  • Uncheck "Only create run projects and Run dependencies"
0
source

All Articles