How do you get Visual Studio to recognise XAML changes?

后端 未结 3 1874
野性不改
野性不改 2021-01-19 01:17

I have just started with WPF so am probably missing something simple here. I have a window that I am editing in VS 2010. When I change the XAML by hand and then run the appl

相关标签:
3条回答
  • 2021-01-19 01:53

    It turns out that my UI project was not set to build in the configuration I had selected. Although it was set to build in Debug x86 I had set the current config to Debug Any CPU.

    0 讨论(0)
  • 2021-01-19 01:59

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

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

    Update Before building and On Run, when projects are out of date values to Save all changes and Always build respectively.

    0 讨论(0)
  • 2021-01-19 02:03

    What worked for me in Visual Studio 2012:

    1. Go to Tools -> Options -> Projects and Solutions -> Build and Run
    2. For "On Run, when projects are out of date" select "Always build"
    3. Uncheck "Only build startup projects and dependencies on Run"
    0 讨论(0)
提交回复
热议问题