Visual Studio 2013扩展和漫游配置文件

时间:2015-05-08 03:59:05

标签: windows visual-studio visual-studio-2013 visual-studio-extensions

如果您有漫游配置文件,Visual Studio 2013附带了一些无法正常工作的扩展。在打开C#项目时(以及在某些情况下)创建新C#项目时,症状是错误消息。 (其他语言也可能受到影响。)

这些错误发生在您首次运行Visual Studio的计算机以外的任何计算机上,并且似乎与扩展存储在具有随机组件的路径中的事实有关。

有问题的扩展名是:

  • Visual Studio的应用程序洞察工具
  • Visual Studio 2013的NuGet包管理器

我相信在所有机器上卸载这两个扩展程序都可以解决问题,但还有其他方法吗?

活动日志中的错误消息如下所示:

  <entry>
    <record>311</record>
    <time>2015/05/08 02:41:35.021</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [NuGetVSEventsPackage]</description>
    <guid>{98BF0691-D23C-4897-A241-9CF5BEFDCC4A}</guid>
    <hr>80070002</hr>
    <errorinfo>Could not load file or assembly 'NuGet.Tools, Version=2.8.50926.663, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.</errorinfo>
  </entry>

  <entry>
    <record>312</record>
    <time>2015/05/08 02:41:35.021</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>End package load [NuGetVSEventsPackage]</description>
    <guid>{98BF0691-D23C-4897-A241-9CF5BEFDCC4A}</guid>
    <hr>80004005 - E_FAIL</hr>
    <errorinfo>Could not load file or assembly 'NuGet.Tools, Version=2.8.50926.663, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.</errorinfo>
  </entry>

  <entry>
    <record>321</record>
    <time>2015/05/08 02:41:36.967</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [VSPackage]</description>
    <guid>{1A4EFADE-F6B2-4490-A2EF-21D5F3D1C8E0}</guid>
    <hr>80070002</hr>
    <errorinfo>Could not load file or assembly 'file:///C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\v03a4uqf.jhe\Microsoft.AppInsights.GettingStarted.dll' or one of its dependencies. The system cannot find the file specified.</errorinfo>
  </entry>

  <entry>
    <record>322</record>
    <time>2015/05/08 02:41:36.967</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>End package load [VSPackage]</description>
    <guid>{1A4EFADE-F6B2-4490-A2EF-21D5F3D1C8E0}</guid>
    <hr>80004005 - E_FAIL</hr>
    <errorinfo>Could not load file or assembly 'file:///C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\v03a4uqf.jhe\Microsoft.AppInsights.GettingStarted.dll' or one of its dependencies. The system cannot find the file specified.</errorinfo>
  </entry>

HKCU中有一个注册表项引用了缺少的路径:

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0_Config\Packages\{1a4efade-f6b2-4490-a2ef-21d5f3d1c8e0}
    VsWinExpressId    REG_DWORD    0x4
    VWDExpressId    REG_DWORD    0x3
    MinEdition    REG_SZ    Standard
    ProductVersion    REG_SZ    1.0
    ProductName    REG_SZ    Application Insights Tools for Visual Studio
    CompanyName    REG_SZ    Microsoft Corporation
    (Default)    REG_SZ    VSPackage
    InprocServer32    REG_SZ    C:\Windows\system32\MSCOREE.DLL
    Class    REG_SZ    Microsoft.AppInsights.GettingStarted.VSPackage
    CodeBase    REG_SZ    C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\tr5jvnqs.3lf\Microsoft.AppInsights.GettingStarted.dll

(注意:发布的注册表项是从与活动日志不同的测试运行中获得的,这就是路径的随机部分不匹配的原因。)

0 个答案:

没有答案