2011-06-10 88 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可能會有點混淆,並可能保留在文件的舊副本。

相關問題