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

查看:141
本文介绍了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>制表符中更改缩进选项>改为智能,而不是阻止.就我而言,它已经设置为智能,然后将其更改回阻止即可解决问题.

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.

可能相关的问题: 查看全文

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