使用 VS2013 找不到 VersionControlExt

Can't find VersionControlExt using VS2013

我想编写一个 VSPackage 并且需要从源代码管理资源管理器历史记录中获取选定的项目。我很确定我需要 VersionControlExt,但我找不到使用 Visual Studio 2013 的命名空间 Microsoft.VisualStudio.TeamFoundation.VersionControl。你能帮我吗?

您可以使用 NuGet 包 Microsoft.TeamFoundationServer.ExtendedClient。我不确定这些是否太新而不能用于 VS2013,但它最容易测试。

如果 NuGet 包不起作用,您可以在您的计算机上获取 DLL。这些 DLL 存储在 Visual Studio 的私有程序集缓存中。您可以编辑注册表以允许 Visual Studio 搜索这些文件夹。详情见本post的第一步:Step 1: Help Visual Studio Find Team Foundation Assemblies