自动附加支持行为未完全成功
我有一个包含多个 C# 项目的 Visual Studio 2010 解决方案,安装并启用了 Resharper 5.1。所有这些项目都以 .NET Framework 4 为目标。
该解决方案几个月来一直运行良好,但今天早上加载该解决方案时收到以下消息:
我四处寻找有关此消息含义的解释,但运气不佳。
此外,我无法重现此错误,并且它似乎没有破坏我的项目中的任何内容。
不过,我不喜欢这些无法解释的错误,所以我想知道读到这里的人是否知道根本原因?
I have a Visual Studio 2010 solution containing several C# projects, with Resharper 5.1 installed and enabled. All these projects target the .NET Framework 4.
This solution has been working fine for months, but this morning I got the following message when the solution was loaded:
I've looked around for an explanation on the meaning of this message, but with little luck.
Additionally, I haven't been able to repro this error, and it doesn't seem to have broken anything on my project.
Still, I don't like these kind of unexplained errors, so I was wondering if anyone reading this knows the root cause?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
嗯,这很特别。它必须是调试器通知,VS 的一部分,它“附加”并使“托管”成为一个类别。另一个类别是“非托管”,一种不同类型的调试器界面。它显然在那里失去了理智。
对策依次为:
如果您还没有安装它,请考虑将列表向上移动 3 个,它有大量错误修复和调整,并且运行良好。
Hmm, that's special. It must be a debugger notification, the part of VS that 'attaches' and makes "Managed" a category. The other category is "Unmanaged", a different kind of debugger interface. It clearly lost its marbles there.
Counter-measures, in order, are:
Consider moving 3 up the list if you haven't installed it yet, there are a ton of bug fixes and tweaks and works well.
在 Visual Studio 2012 和 Windows 8.1 中,我遇到了这个问题,我从解决方案属性/构建/平台目标更改了 X86,然后我的问题得到解决。
In Visual Studio 2012 and Windows 8.1, I had this problem,I changed X86 from Solution Properties/Build/Platform target then my problem resolved.
这件事困扰了我一段时间。最后我找到了解决方案。
当我按下帮助按钮时,他们建议我整理附加的调试选项。在没有任何结果的情况下,我最终设法检查了
项目属性 - 调试
下的启用 SQL Server 调试
选项。This has been nagging me for a while. Finally I found a solution.
When I press the help button they suggest I sort out the attached debug option. Without any result I finally managed to check the
Enable SQL Server Debugging
option underProject Properties - Debug
.我的设置与您完全相同:VS2010,其中有几个指向 Net 4 和 Resharper 5.1 的 C# 项目。我使用的是 Windows XP SP3
我遇到了完全相同的错误,并且任务栏中有一个空的 VS 图标。
当我将 VS 转移到我的主显示器(我有 2 个)并重新启动时,空图标消失了。看来VS不喜欢在第二台显示器上。
至于你的错误,我清理了Resharper缓存(我将其存储在TEMP文件夹中,而不是解决方案文件夹中)重新启动,并且没有再次收到错误
I have the exact same setting as you: VS2010 with several C# projects pointing to Net 4 and Resharper 5.1. I'm on Windows XP SP3
I was getting the exact same error, along with an empty VS icon in the taskbar.
The empty icon got away when I shifted VS to my main monitor (I have 2) and restarted. It seems that VS doesn't like to be in the second monitor.
As for your error, I cleaned up the Resharper cache (I'm storing it in the TEMP folder, not the solution folder) restarted, and didn't get the error again
在“调试”菜单 - 转到“解决方案属性”中,选择“调试”选项卡,然后勾选启用 SQL SERVER 调试复选框
In Debug Menu - GoTo Solution Properties and select debug tab and tick the ENABLE SQL SERVER DEBUGGING checkbox