1

我正在尝试修改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 git@github.com:git-tfs/git-tfs.git
3. git submodule update

然而,子模块更新似乎没有完成它的工作——它没有获取任何来源。

我究竟做错了什么?

4

1 回答 1

1

您必须在更新前运行 init:

git submodule init
git submodule update

之后要运行 git-tfs 的集成测试,您需要启动并运行 XUnit:

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

VS2012 的 XUnit 测试运行器:http: //visualstudiogallery.msdn.microsoft.com/463c5987-f82b-46c8-a97e-b1cde42b9099

要运行集成测试,您必须为 VS2008、2010 和 2012 安装 TFS 插件(Team Explorer)。但如果您不安装这些项目(GitTfs.Vs2008、GitTfs.Vs2010 和 GitTfs.Vs11),则可以卸载想要运行它们。GitTfs.VSFake 对于不同的 Visual Studio 版本是假的,它可以让你运行大部分测试。

于 2013-02-28T13:08:49.207 回答