我们有一个大型 Silverlight、基于 WCF RIA 的解决方案,可以在我的桌面上使用 VS2010 构建得很好。但是,在 TFS 服务器上,我们看到以下内容:
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'.
直到周末开发人员检查(不幸的是,检查非常大)之前,所有人都很高兴。我们已经查看了变更集中的变化,但没有发现任何东西。
我们使用的方法与此问题和此处提到的方法类似,因此我们有一个预构建解决方案来避免 RIA 代码生成过程可能引入的循环引用。
我们的怀疑是构建顺序已被更改并正在检查这一点,但任何人都可以提出一些诊断步骤或解决方案吗?