在vs2008中构建wcf ria services silverlight项目时,我遇到了一个奇怪的错误。在输出中,我有一条消息:
C:\Program Files\MSBuild\Microsoft\Silverlight\v3.0\Microsoft.Ria.Client.targets(261,5): error : Failed to write the generated contents of 'C:\projects\[Path_To_Silverlight_Project]\Generated_Code\Analytics.Web.g.cs' to Visual Studio.
…并且Visual Studio在生成时打开一个对话框,其中包含以下内容:
An editor or project is attempting to save a file that is modified in memory. Saving files during a build is dangerous and may result in incorrect build outputs in the future. Continue with save?
我的团队中的其他成员似乎做得很好,但我不能越过这一点(如果我单击“继续”,然后生成文件就很好了,但我可以重新选择这样做)。一定有什么设置或类似的,我在这里失踪了…
PS:我目前正在使用WinXP和WCF RIA服务测试版