2010-09-27 51 views
3

我們試圖讓我們的TeamCity 5.1安裝使用我們的FXCop項目文件。它顯然不喜歡的最新版本,V10:TeamCity和FXCop版本10

[08:26:33]: Failed loading FxCop project. 
[08:26:33]: Error text: This project file is version 10.0 but the current application version is 1.36. Please download a more recent version of FxCop to open this file.. 
[08:26:33]: Process exited with code 1 

是否有升級的TeamCity使用或是否需要降級,我們正在使用我們的工作站上版本的版本的方法嗎?

有誰知道TeamCity 6是否會支持FXCop 10?

回答

8

您應該可以在FxCop Build Runner選項卡上更改FxCop installation root。您需要先在構建服務器/代理上安裝FxCop 10,或者將其放在源代碼管理下並使用VCS根目錄(超出此問題的範圍)。

附註:Tip for installing FxCop 10

+0

你是完全正確的。我覺得自己像是沒有意識到buildagent有FXCop,而不是構建服務器。你的回答讓我工作。謝謝! – jslatts 2010-10-15 20:07:03

+0

嗨@TrueWill,你方注意鏈接中斷 – shanabus 2017-05-17 13:15:25

+0

@shanabus固定。 – TrueWill 2017-05-17 13:32:10

8

TrueWill有正確的答案。我想補充一點,我必須做到以下幾點得到它的工作:

  1. 安裝的FxCop 10(可從7.1的Windows SDK得到它)
  2. 更新buildagent.properties包括:

    system.FxCopRoot = C:\ Program Files文件\(x86)的\微軟\的FxCop \ 10.0

    system.FxCopCmdFileVersion = 10.0.30319.1

    system.WindowsSDK7.1

  3. 重新啓動構建代理。

+0

哪裏指定了bbuild代理屬性?它是使用構建定義還是在構建服務器上設置的? – Tedford 2012-03-22 19:03:57

+0

@Tedford - FxCop Build Step設置中有一個FxCop路徑設置(自動/手動)。 – georgiosd 2013-08-28 06:51:51