2011-06-10 90 views
2

当我建我的WCF库项目与团队市,我得到以下警告:的TeamCity构建了警告CS0472为WCF服务构建,而不是Visual Studio的

"C:\TeamCity\buildAgent\temp\buildTmp\.NETFramework,Version=v4.0.AssemblyAttributes.cs" [10:48:33]: [Csc] Services\External\ColorService.cs(762, 74): warning CS0472: The result of the expression is always 'false' since a value of type 'decimal' is never equal to 'null' of type 'decimal?'

我不知道如何解决这是因为我甚至没有看到ColorService.cs中的第762行。

当我在Visual Studio中构建项目时,看不到此警告。

回答

0

从TeamCity代码位置获取ColorService.cs的副本,并将它(使用Diff工具)与Visual Studio的本地副本进行比较。

确保它们是相同的,因为它听起来像TeamCity可能会有点混淆,并可能保留在文件的旧副本。

相关问题