我们有一个Silverlight,基于WCF RIA的大型解决方案,在我的桌面上与VS2010一起构建得很好。但是,TFS服务器上,我们看到了以下内容:Silverlight,WCF RIA构建失败与TFS MSBuild
ViewModels\MyVM.cs (47): The type 'TestService.Web.SystemAccount' exists in both
'd:\Builds\1\MyProduct\Binaries\Silverlight\TestService.dll' and 'd:\Builds\1\MyProduct
\Binaries\Silverlight\CommonService.dll'
..和...
Generated_Code\TestService.Web.g.cs (37476): The type 'TestService.Web.GroupToRule' in
'd:\Builds\1\MyProduct\Sources\Source\UI\TestService\Generated_Code\TestService.Web.g.cs'
conflicts with the imported type 'CommonService.GroupToRule' in 'd:\Builds\1\MyProduct
\Binaries\silverlight\CommonService.dll'. Using the type defined in 'd:\Builds\1\MyProduct
\Sources\Source\UI\CommonService\Generated_Code\CommonService.Web.g.cs'.
所有很高兴直到开发检查上周末(不幸中的一个非常大的检查) 。我们查看了变更集中发生了什么变化,但没有发现任何内容。
我们正在使用类似于此question和here中提到的方法,因此我们有一个预构建解决方案来避免RIA代码生成过程可以引入的循环引用。
我们怀疑构建顺序已被修改并正在检查中,但任何人都可以提出一些诊断步骤或解决方案吗?