Visual Studio 2012 中的“等待后台操作"是什么? [英] What is this 'Waiting for Background operation' in Visual Studio 2012?

查看:28
本文介绍了Visual Studio 2012 中的“等待后台操作"是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

偶尔,但相当频繁,没有明显原因,VS 2012 会锁定一个对话框,显示正在等待后台操作完成".例如.这可能发生在简单的旧代码编辑期间,而不是显式调用任何 IDE 命令.

Occassionaly, but fairly often, for no apparent reason, VS 2012 will lock up with a dialogue that says, "Waiting for a background operation to finish". E.g. this may happen during a plain old code edit, not on explicitly invoking any IDE command.

这是什么原因造成的,我能做些什么吗?

What causes this, and is there anything I can do about this?

我正在运行 ReSharper 7,而且我不是唯一一个遇到这种情况的人.

I am running ReSharper 7, and I am not the only one I know experiencing this.

推荐答案

我遇到了同样的问题,尤其是在 cshtml 页面中.我找到了这个页面:https://devblogs.microsoft.com/aspnet/visual-studio-11-beta-razor-editor-issue-workaround 建议更改工具>选项>文本编辑器>HTML>标签中的缩进选项> 到 Smart 而不是 Block.就我而言,它已经设置为智能并将其改回阻止解决了问题.

I was having the same problem, especially in cshtml pages. I found this page: https://devblogs.microsoft.com/aspnet/visual-studio-11-beta-razor-editor-issue-workaround that suggests changing the indent option in Tools > Options > Text Editor > HTML > Tab to Smart instead of Block. In my case it was already set to Smart and changing it back to Block fixed the problem.

更新:我错了,那并没有修复对话,只是延迟了它,直到我复制或粘贴为止.最终对我有用的是转到工具 > 导入和导出设置... > 重置所有设置.

Update: I was wrong, that didn't fix the dialogue, it just delayed it until I copied or pasted. What finally worked for me was to go to Tools > Import and Export Settings... > Reset all settings.

可能相关的问题:Visual Studios 2010 - Asp.net MVC 4 Beta - 粘贴延迟和频繁崩溃

这篇关于Visual Studio 2012 中的“等待后台操作"是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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