0

In my C# project(WPF), I have a XML file, and I need to modify this file very often, because it is metadata for my application. After modifying this file, I pressed F5 for debugging my app, but the project would not rebuild, and I got an old version of this file in the debug folder. I need to force a rebuild of the project every time after modifying the XML file.

Can i tune VS 2010 to automatically rebuild the project after modifying the XML file?

Xml file properties in VS: Build Action=Content, Copy to Output Directory=Always.

4

1 回答 1

0

1) 打开“工具”菜单,点击“选项”。

2) 展开“项目和解决方案”。

3) 单击“构建并运行”选项卡。

4) 在“On Run, when projects are out of date”下拉菜单中,选择“Always build”。

于 2013-01-25T10:55:58.887 回答