Visual Studio 2012 扩展问题 [英] Visual Studio 2012 Extension Issues

查看:36
本文介绍了Visual Studio 2012 扩展问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

前一周,我通过扩展管理器运行更新以更新特定扩展.当我重新启动 Visual Studio 时,我收到一条错误消息,要求检查 ActivityLog.xml 文件.查看该文件,我看到它试图加载一个不再存在的扩展,因此我使用 GUID 作为参考将其从注册表中删除.

The other week I ran an update through the extension manager to update a particular extension. When I restarted Visual Studio I was greeted with an error saying to check the ActivityLog.xml file. Looking in that file I saw it was trying to load an extension that didn't exist any more, so I removed it from the registry using the GUID as a reference.

我似乎仍然对扩展感到奇怪.每当我安装新扩展时,ActivityLog 都会显示它已正确加载,但它们从未在 Visual Studio 中显示.有一次,我什至在 Tools -> 中有一个旧的扩展菜单选项.选项在点击它时只是给出了一个例外.

It seems thought I am still getting oddities with extensions. Whenever I install a new extension the ActivityLog shows it has been loaded without error yet they never show in Visual Studio. At one point I even had an old extension menu option in Tools -> Options that simply gave an exception when clicking it.

我在打开解决方案文件时也遇到错误,如下所示:

I am also getting errors when opening a solution file, like so:

我尝试修复并重新安装 Visual Studio 2012,但没有 eval.有没有其他人遇到过这种情况?

I have tried to repair and reinstall Visual Studio 2012, but to no eval. Has anyone else encountered this?

编辑看来,当我让另一个用户登录我的机器并第一次打开 Visual Studio 时,一切都对他有用.他能够安装扩展程序并立即查看它们,所以我的用户配置文件中的某些内容可能已损坏 - 对此有何想法?

Edit It appears that when I got another user to sign onto my machine and open Visual Studio for the first time it all worked for him. He was able to install extensions and see them instantly, so maybe something in my user profile is corrupted - any ideas on this?

推荐答案

我打算将此作为答案发布,但我无法 100% 确认这是正确的解决方案...

I am going to post this as an answer, but I cannot confirm 100% that this is the correct solution...

  • 我关闭了 Visual Studio 2012 的所有实例.
  • 删除了 C:\Users\toha\AppData\Local\Microsoft\VisualStudio\11.0C:\Users\toha\AppData\Roaming\Microsoft\VisualStudio\11.0代码> 文件夹.
  • 打开regedit.exe并删除HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config> 键.
  • 在打开 Visual Studio 2012 之前重新启动了我的电脑.
  • 启动了 Visual Studio 2012 并完成了初始设置,它只是......工作.
  • I closed down all instances of Visual Studio 2012.
  • Deleted the C:\Users\toha\AppData\Local\Microsoft\VisualStudio\11.0 and C:\Users\toha\AppData\Roaming\Microsoft\VisualStudio\11.0 folders.
  • Opened regedit.exe and deleted the HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0 and HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config keys.
  • Restarted my PC before opening Visual Studio 2012.
  • Started Visual Studio 2012 and went through initial setup and it just...worked.

我确定我在发布此问题时尝试执行这些步骤,但我可能没有重新启动计算机.无论哪种方式,就像我说的,不太确定这是否是一个解决方案,但它似乎对我有用.

I am sure I tried doing these steps when I posted this question, but I may not have restarted my computer. Either way, like I said, not too sure if it's a solution, but it's what seemed to work for me.

问题仍然存在,目前对我有用的一种解决方案是:

The issue persisted and one solution that is working for me currently is this:

  • 让另一个用户登录计算机.
  • 登录后打开 Visual Studio 2012.
  • 打开 regedit.exe 并导出 HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config 键.
  • 将导出保存在 C:\temp 之类的地方.
  • 重新登录您的用户并关闭 Visual Studio 2012 的所有实例.
  • 打开 regedit.exe 并删除 HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config> 键.
  • 导入之前导出的 HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config 键.
  • 重新启动 Visual Studio 2012.
  • Get another user to log onto the computer.
  • Once logged in open Visual Studio 2012.
  • Open regedit.exe and export the HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config key.
  • Save the export somewhere like C:\temp.
  • Log back into your user and close all instances of Visual Studio 2012.
  • Open regedit.exe and delete the HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0 and HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config keys.
  • Import the earlier exported HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0_Config key.
  • Restart Visual Studio 2012.

这篇关于Visual Studio 2012 扩展问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆