Visual Studio 在启动时冻结或挂起

发布于 2024-11-24 04:31:23 字数 155 浏览 0 评论 0原文

我使用 Visual Studio 一段时间了,发现当我打开 Visual Studio 并打开项目时,上次打开的所有文件都保持打开状态。

这会导致我的 Visual Studio 在启动时冻结或崩溃。

我在安装中使用了很多插件,想知道是否有办法防止这种情况发生。

I have been using Visual Studio for a while and found that when I open visual studio and open the project all the files that were open last time remain open.

This causes my Visual Studio to freeze or crash on startup.

I am using a lot of plugins in my installation and wonder if there is a way to prevent this from happening.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(15

看春风乍起 2024-12-01 04:31:24

这对我有帮助:我删除了所有 SDK、JDK 和 JDK。之前已在 VS 设置中建立根的 JRE 文件夹。之后我使用了 devenv.exe /ResetUserData 和 devenv.exe /ResetSettings 。

在 Visual Studio 2015 上为我工作。

This helped me: I deleted all SDK, JDK & JRE folders that had been rooted in VS settings before. After that I used devenv.exe /ResetUserData and devenv.exe /ResetSettings.

Worked for me on Visual Studio 2015.

乱了心跳 2024-12-01 04:31:23

您是否尝试过重置用户设置?它确实帮助了我:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe /ResetUserData

Have you tried resetting user settings? It did help me:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe /ResetUserData
很快妥协 2024-12-01 04:31:23

运行:Devenv /ResetSkipPkgs

http://msdn.microsoft.com/en-us/library/ms241276%28VS.80%29.aspx

您是可能正在寻找 /SafeMode 命令行开关:

devenv.exe /SafeMode

这将在禁用所有加载项的情况下启动 Visual Studio。

Run: Devenv /ResetSkipPkgs

http://msdn.microsoft.com/en-us/library/ms241276%28VS.80%29.aspx

or

You are probably looking for the /SafeMode command line switch:

devenv.exe /SafeMode

This will start Visual Studio with all add-ins disabled.

南渊 2024-12-01 04:31:23

您可以更改 Visual Studio 2010 启动设置。

工具 --> 选项 --> 启动 --> 启动时 --> 显示空环境 --> 保存

Visual Studio 有插件限制。仅使用最适合您的插件。有一个针对开发人员的最佳 Visual Studio 2010 插件列表。

Visual Studio 2010 - 推荐扩展

You can change your Visual Studio 2010 start up settings.

Tools --> Options --> Startup --> At startup --> Show empty environment --> Save

Visual Studio has a plugins limit. Use only plugins that best for you. There is a list for best Visual Studio 2010 plugins for developers.

Visual Studio 2010 - recommended extensions

君勿笑 2024-12-01 04:31:23
devenv.exe /ResetSettings

或者

devenv.exe /ResetSetting

对我来说效果很好

devenv.exe /ResetSettings

or

devenv.exe /ResetSetting

Worked fine for me

无人接听 2024-12-01 04:31:23

我在 Community 2015 版本中遇到了同样的问题。我按照 Vidas Vasiliauskas 的建议解决了这个问题,即删除用户设置。

问题是我之前有 2015 版本,我使用我的 Microsoft 帐户登录。当尝试打开 版本时,它尝试执行以下操作所以用同一个帐户,我认为这是问题的原因。

因此,我建议那些有同样问题的人在命令行提示符下运行以下命令:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv .exe /重置用户数据

I had the same issue with Community 2015 version. I solved it with Vidas Vasiliauskas suggestion, which was to erase user settings.

The thing is that I previously had 2015 version, in which I was logged in with my Microsoft account. When trying to open version, it tried to do so with that same account, which I believe was the cause of the issue.

Therefore, I would suggest to those with the same problem to run the following command at Command Line Prompt:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe /ResetUserData

孤独患者 2024-12-01 04:31:23

就我而言,VS 2013 Professional 在启动时挂起,因为许可证不再有效。

日志文件中的最后一项:

<entry>
    <record>367</record>
    <time>2015/07/13 20:11:05.051</time>
    <type>Information</type>
    <source>UserConnection</source>
    <description>[email protected] signed in for IDE user</description>
</entry>

在 msdn.microsoft.com 订阅页面上:“您的订阅不再有效,请联系您的管理员。”

我必须从我的雇主那里获得更新的订阅。

In my case, VS 2013 Professional was hanging on startup because the license was no longer valid.

Last item in the log file:

<entry>
    <record>367</record>
    <time>2015/07/13 20:11:05.051</time>
    <type>Information</type>
    <source>UserConnection</source>
    <description>[email protected] signed in for IDE user</description>
</entry>

And on the msdn.microsoft.com subscription page: "Your subscription is no longer active, contact your administrator."

I had to get an updated subscription from my employer.

稀香 2024-12-01 04:31:23

当它挂在启动屏幕上时:

可能是防病毒解决方案阻止了 Visual Studio。

卡巴斯基安全软件 16.0.1.445 使 Visual Studio 2015 挂在启动屏幕上。旧版本 16.0.0.614 工作正常。

When it hangs on the splash screen:

It could be that an anti-virus solution is blocking Visual Studio.

Kaspersky Internet Security 16.0.1.445 makes Visual Studio 2015 hang on the splash screen. The older version 16.0.0.614 works fine.

各自安好 2024-12-01 04:31:23

清除 C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config 中的标记元素

对 C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config 也执行相同操作

标签应该是

Clear the tag's elements in C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config

Also do the same with C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config

The tag should just be <runtime/>

被你宠の有点坏 2024-12-01 04:31:23

这是因为渲染 IDE UI 尝试这个希望它能解决

1- 打开“Visual Studio”

2- 从顶部菜单中选择“选项”

3- 导航到“环境 => 常规”

4- 取消选中“优化屏幕渲染”不同的像素密度”

5-重新启动 Visual Studio

This is becuase of rendering IDE UI try this hope it will resolve

1- Open "Visual Studio"

2- Select "Options" from the top menu

3- Navigate to "Environment => General"

4- Unchecked "Optimize rendering for screens with different pixel densities"

5- Restart visual studio

一个人的旅程 2024-12-01 04:31:23

如果您的 Visual Studio 2019 由于扩展错误而卡住,可以通过以下方法使其恢复正常。

首先,以安全模式 (devenv.exe /SafeMode) 启动 Visual Studio 并卸载麻烦制造者。

此后,如果 Visual Studio 2019 仍然没有响应,您需要执行以下操作:

  • 浏览到 %LOCALAPPDATA% 并转到 Microsoft -> VisualStudio-> 16.0_bb6da863(或您安装的任何版本)
  • 删除以下文件夹(所有与缓存相关的):
    • 组件模型缓存
    • 图片库
    • MFECacheBackup
    • 扩展\*.cache

参考:

在此处输入图像描述

希望它可以帮助您并确保 VS 修复/重新安装的安全。

快乐编码:-)

If your Visual Studio 2019 is stuck due to a faulty extensions, here is a way to get it back to normal.

First, start Visual Studio in safe mode (devenv.exe /SafeMode) and uninstall the troublemaker.

Hereafter, if Visual Studio 2019 is still unresponsive, you need to do the following:

  • Browse to %LOCALAPPDATA% and go to Microsoft -> VisualStudio -> 16.0_bb6da863 (or whatever version you have installed)
  • Delete the following folders (all cache related):
    • ComponentModelCache
    • ImageLibrary
    • MFECacheBackup
    • Extensions\*.cache

For reference:

enter image description here

Hope it helps you and safe a VS repair/reinstall.

Happy coding :-)

无可置疑 2024-12-01 04:31:23

启动 VS 2015 后,我在 VS2015 中挂起(没有响应)约 5 分钟(挂起本身在 VS 2015 打开后约 2 分钟开始)。

事实证明,SQM(质量指标服务)在 C:\Users(me)\AppData\Local\Microsoft\VSCommon\14.0\SQM 中创建了数千个文件。

删除这些文件解决了问题。

通过 Windows 注册表将 dword 设置为零来关闭 SQM
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VSCommon\14.0

I had a hang (not responding) in VS2015 for a about 5 minutes after starting VS 2015 (the hang itself started about 2 minutes after VS 2015 opened).

It turned out that the SQM (Quality Metrics Service) and created thousands of files in C:\Users(me)\AppData\Local\Microsoft\VSCommon\14.0\SQM.

Deleting these file fixed the problem.

Turned off SQM via Windows registry by setting the dword to zero under
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VSCommon\14.0

优雅的叶子 2024-12-01 04:31:23

我在使用 Git 源代码管理插件时遇到了这个问题。

我运行了 devenv.exe /SafeMode

然后在选项 -> 中源代码控制 ->插件选择确保选择“无”或“Visual Studio Team Foundation Server”。之后VS正常启动。

I was having this issue when using the Git source-control plugin.

I ran devenv.exe /SafeMode

And then in Options -> Source Control -> Plug-in Selection made sure "None" or "Visual Studio Team Foundation Server" was selected. After that, VS started normally.

请恋爱 2024-12-01 04:31:23

检查任务管理器。我运行了一个Setup.exe(不确定它正在安装什么),但是一旦我杀死它,VS 就会解冻。

Check Task Manager. I had a Setup.exe running (not sure what it was installing), but once I killed it, VS unfroze.

如何视而不见 2024-12-01 04:31:23

我最近 VS2017 陷入启动困境。所以我这样做并为我工作:
1 - 以管理员身份启动 cmd :运行以下命令:

cd "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE"
devenv.exe /SafeMode

2- VS 启动后,转到
工具=>扩展和更新:
然后卸载所有最近安装的插件(注意安装日期)和不需要的插件)

I have got recently VS2017 stucked on start up . so I did this and worked for me :
1 - start cmd as admin : run the following:

cd "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE"
devenv.exe /SafeMode

2- once VS is started , go to
Tools => Extentions and Updates :
then uninstall all plug-ins that installed recently ( notice the installed date ) and unnecessary ones)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文