2010-04-15 61 views
0

在VS2008中构建我的WCF RIA Services Silverlight项目时出现一个奇怪的错误。在输出我有这样的消息:WCF RIA Services构建错误

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

回答

2

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