visual-studio - Visual Studio 2015 中的 Tf 不工作

标签 visual-studio tfs visual-studio-2015

使用全新安装的 VS 2015,我遇到了一系列 TFS 问题。 Checkin 策略被破坏,TF 命令行被破坏。

例如,转到 VS2015 的开发人员命令提示符并键入 tf 会导致崩溃。它提示无法访问 Microsoft.TeamFoundation.Client。

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or   assembly 'Microsoft.TeamFoundation.Client, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. 

我相信我明白一些需要的 dll 不是 VS 安装的一部分,而是一个 nuget 包。

[1] Where can I find Microsoft.TeamFoundation.VersionControl.Client.dll in Visual Studio 2015 installation?

[2] Where can I find Microsoft.TeamFoundation.Build.Client in Visual Studio 2015?

但是,通过以下命令安装软件包并不能修复命令行中对 tf.exe 的访问。

Install-Package Microsoft.TeamFoundationServer.ExtendedClient 

如果您从 VS 2012/2013 升级,这一切都没有问题,因为 dll 位于正确/旧位置。 有谁知道如何解决这个问题?

最佳答案

  1. 使用管理员运行开发者命令提示符
  2. 尝试通过进入默认 C:\{User Profile 来删除 TFS 缓存 文件夹}\AppData\Local\Microsoft\Team Foundation\x.0\Cache 和 VS 缓存在 appdata 文件夹中。并重新启动 VS 和您的计算机
  3. 尝试在命令提示符下运行 sn -Vr *,* 以根据此 blog 禁用强签名

关于visual-studio - Visual Studio 2015 中的 Tf 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35757050/

相关文章:

angular - Visual Studio 警告 : (ESLint) Failed to load config "defaults/configurations/eslint" to extend from. 引用自 C :\Users\{username}\. eslintrc

tfs - Visual Studio Team Services, 403 forbidden, 你没有访问这个功能的许可权限,一夜之间失去了大部分权限?

c++ - CMake:在 Windows 上找不到编译器

svn - 版本控制中的项目结构

azure - Visual Studio 2015 - Azure 通知中心 - 缺乏信息

sql - 创建数据库范围的凭证语法

c++ - 对 RTTI raw_name() 的好奇心

c++ - ICC 指针检查的链接器错误

c# - 如何使用 c#.net 在电子邮件中将 Html 输入文件值作为附件发送

entity-framework - Visual Studio TFS 项目,我的模型在从数据库更新后被删除