2013-02-28 101 views
1

我正在嘗試修改git-tfs。但是,我似乎無法建立它。獲取可構建的git-tfs

我做了什麼:

1. Read the readme which states for building: 
    1a. Update submodules. git submodule update to get the libgit2sharp dependencies. 
    1b. Build with msbuild GitTfs.sln /p:Configuration=debug for the default debug build. 
2. clone git-tfs: git clone [email protected]:git-tfs/git-tfs.git 
3. git submodule update 

然而,子模塊更新似乎並沒有做的工作 - 它不取任何來源。

我在做什麼錯?

回答

1

你必須更新之前運行初始化:

git submodule init 
git submodule update 

後,要運行的git-TFS集成測試,你將需要得到的xUnit和運行:

https://github.com/git-tfs/git-tfs/wiki/Running-the-Unit-Tests

的xUnit測試轉輪VS2012: http://visualstudiogallery.msdn.microsoft.com/463c5987-f82b-46c8-a97e-b1cde42b9099

要運行集成測試,那麼你會hav e爲VS2008,2010和2012安裝TFS插件(團隊資源管理器)。但是如果你不想運行它們,你可以卸載這些項目(GitTfs.Vs2008,GitTfs.Vs2010和GitTfs.Vs11)。對於不同的Visual Studio版本,GitTfs.VSFake是一個假冒代碼,可以讓你運行大部分測試。