代码之家  ›  专栏  ›  技术社区  ›  soren.enemaerke

WCF RIA服务生成错误

  •  0
  • soren.enemaerke  · 技术社区  · 16 年前

    在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服务测试版

    1 回复  |  直到 16 年前
        1
  •  2
  •   Adi    15 年前

    我也有同样的问题。它是由生成的文件在tfs上生成的,当我得到最新版本的tfs时,tfs也忘了带这个文件。所以我去了团队资源管理器,强迫tfs在本地获取文件,然后在一个构建之后,所有的工作都像一个符咒。

    推荐文章