【问题标题】:TFPT not working with VS2015TFPT 不适用于 VS2015
【发布时间】:2017-01-23 13:36:31
【问题描述】:

我正在使用 Visual Studio 2015 和 Team Foundation Power Tools 2015,并且资源管理器扩展和命令行工具无法正常工作。当我在 VS2015 的 Devleoper 命令提示符中键入 tfpt 时,我收到以下错误。

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or 
assembly 'Microsoft.TeamFoundation.Common, Version=12.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies. The system cannot find the file specified.   at
Microsoft.TeamFoundation.PowerTools.CommandLine.CommandLine.Main(String[] args)

我已经在管理员中运行了一些东西,这没有什么区别。 这是我运行 TF 命令时得到的结果。

C:\Program Files (x86)\Microsoft Visual Studio 14.0>tf
Microsoft (R) TF - Team Foundation Version Control Tool, Version 14.0.24712.0

TFS 在 VS 中运行良好。当我拥有 VS2013 和 TFS Power Tools 2013 时,一切正常。我还需要做什么才能使其正常工作?

编辑:我已经解决了命令行问题,但现在 shell 扩展不起作用。我在 Windows 资源管理器中看不到绿色复选框,当我右键单击文件夹时,我没有看到 TFS 选项。我注意到它有多个进程,这显然看起来不太好。继续创建新进程,直到出现内存问题。

此外,在 windows 日志中看到这两个事件。

Log Name:      Application
Source:        TFSShellExt
Date:          9/25/2016 7:25:40 PM
Event ID:      3
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      MyComp
Description:
TFS Shell Extension event:\n Failed to start COMProvider while updating workspaces.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="TFSShellExt" />
    <EventID Qualifiers="32770">3</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2016-09-25T23:25:40.000000000Z" />
    <EventRecordID>156525</EventRecordID>
    <Channel>Application</Channel>
    <Computer>MyComp</Computer>
    <Security />
  </System>
  <EventData>
    <Data>Failed to start COMProvider while updating workspaces.</Data>
  </EventData>
</Event>

Log Name:      Application
Source:        TFSShellExt
Date:          9/25/2016 7:25:40 PM
Event ID:      3
Task Category: None
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      MyComp
Description:
TFS Shell Extension event:\n More than 5 failed calls to com provider. 
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="TFSShellExt" />
    <EventID Qualifiers="32770">3</EventID>
    <Level>3</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2016-09-25T23:25:40.000000000Z" />
    <EventRecordID>156524</EventRecordID>
    <Channel>Application</Channel>
    <Computer>MyComp</Computer>
    <Security />
  </System>
  <EventData>
    <Data>More than 5 failed calls to com provider. </Data>
  </EventData>
</Event>

【问题讨论】:

  • 您的机器上是否安装了 2013 版本?它试图找到版本 12 的参考。
  • 我确实有 VS2013。 TFPT 工作,删除 VS2013,然后 TFPT 被破坏。升级了TFPT,还是不行。我在哪里可以清理 VS 寻找 VS2013 dll 的参考?
  • 删除VS2013后是否卸载了Power Tools 2013?
  • 是的。请查看我的更新。
  • 您能否先卸载 Power Tools 的 2013 和 2015 版本,以检查这些进程是否从任务管理器中消失?

标签: visual-studio tfs tfs-2015 tfs-power-tools


【解决方案1】:

我刚刚在我的机器上使用我的 VS2015.3 和 PowerTools 进行了测试,但无法重现您的问题:

报错Could not load file or assembly 'Microsoft.TeamFoundation.Common, Version=12.0.0.0',你可以尝试清理C:\Users\username\AppData\Local\Microsoft\Team Foundation\x.0\Cache中的缓存看看是否对你有帮助。

【讨论】:

  • 我有一个 TF 4.0、5.0 和 6.0 的文件夹。你知道我应该看到哪个是正确的吗?
  • 你可以全部清理掉。
猜你喜欢
  • 1970-01-01
  • 2016-12-29
  • 1970-01-01
  • 2017-04-02
  • 1970-01-01
  • 2015-11-25
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多