在WP8设备上调试时,XAML不会更新 [英] XAML is not updating when debugging on a WP8 device
问题描述
在部署到Windows Phone 8设备时遇到问题.在执行构建和调试时,似乎XAML并未更新.似乎更新的唯一方法是当我执行Rebuild> Debug或卸载应用程序然后进行调试.
I am experiencing a problem when deploying to a Windows Phone 8 device. It seems the XAML is not updating when I do a build and debug. The only way it seems to update is when I do a Rebuild > Debug or uninstall the app then debug.
这是一个场景: 页面包含一个带有单击事件的按钮,该事件名为"Button_Click".我调试,一切正常.停止调试.现在,将事件处理程序的名称更改为NewButton_Click(是,在xaml和cs中都是).再次开始调试,单击按钮,您会得到一个异常,因为没有事件处理程序名称为"Button_Click"
Here is a scenario: A page contains a button with a click event named "Button_Click". I debug and everything works. Stop debugging. Now change the event handler's name to NewButton_Click (yes, in both xaml and cs). Start debugging again, click the button and you get an exception because there is no event handler name "Button_Click"
未检测到XAML更改/将其推送到设备,只有Csharp更改了.
The XAML changes were not detected/pushed to the device, only the Csharp ones were.
如果您执行重建然后调试,它将按预期工作.每次需要部署时都进行重建是PITA,因为我失去了任何隔离的存储.
If you do a Rebuild then debug, it will work as expected. Rebuilding every time I need t deploy is a PITA because I lose any isolated storage.
有人可以弄清楚这里发生了什么吗?
Can someone clear up what is happening here?
注意:这是Windows 8上Visual Studio 2012 Update 3中的Windows Phone 7.x应用程序发生的情况.
NOTE: This is happening with a Windows Phone 7.x app in Visual Studio 2012 Update 3 on Windows 8.
推荐答案
项目名称是否包含(或位于其中的文件夹)任何空格? 就我而言,删除空格可以解决问题.
Does the project name contain (or the folder it is in) any spaces? In my case, removing the spaces solved the problem.
这篇关于在WP8设备上调试时,XAML不会更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!