你如何获得Visual Studio的识别XAML的变化? [英] How do you get Visual Studio to recognise XAML changes?

查看:176
本文介绍了你如何获得Visual Studio的识别XAML的变化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始用WPF所以很可能在这里缺少简单的东西。我有我在2010年VS我的编辑当我用手改变XAML,然后运行窗口仍然是我的编辑前的申请(F5)的窗口,但是如果我做了重建,然后运行我的变化显示应用



有没有什么办法让VS认识到,我已经改变了我的XAML文件并自动重新编译它,当我按F5?


< DIV CLASS =h2_lin>解决方案

事实证明,我的UI项目未设置为构建我选择的配置。虽然它设置为建立调试的x86我已经将当前配置到调试任何CPU。


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 application (F5) the window remains as before my edit, however if I do a rebuild and then run the application my changes show up.

Is there any way to get VS to recognise that I have changed my XAML file and recompile it automatically when I press F5?

解决方案

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.

这篇关于你如何获得Visual Studio的识别XAML的变化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆