在哪里可以找到 Microsoft.VisualStudio.DebuggerVisualizers?
由于缺少程序集,项目将无法编译。 导致错误的文件有一个
using Microsoft.VisualStudio.DebuggerVisualizers;
VisualStudio
部分标记为红色。 我必须安装什么才能修复它? 对我来说,这听起来像是 Visual Studio 附带的东西,但这就是我正在使用的,所以它已安装...
澄清:我知道它存在于哪个程序集中,并且引用会提前添加到项目引用中。 但我怎样才能得到它呢? 我必须安装什么 SDK? 或者我在安装 Visual Studio 时忘记勾选某些内容?
A project won't compile because of a missing assembly. The file that causes the error has a
using Microsoft.VisualStudio.DebuggerVisualizers;
The VisualStudio
part is marked in red. What do I have to install to fix it? To me it sounds like something that would have come with Visual Studio, but that is what I am using, so it is installed...
Clarification: I know what assembly it exists in, and the reference is added earlier to the project references. But how do I get it? What SDK do I have to install? Or have I forgotten to check something off when I installed Visual Studio?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您应该能够在“添加引用”对话框中的“.NET”程序集列表下找到该程序集。
You should be able to find the assembly under the ".NET" list of assemblies in the "Add Reference" dialog.
对于仍在寻找此内容的任何人 - 它已移至 NuGet
To anyone still looking for this - it's been moved to NuGet
您应该能够在 .Net 选项卡的“添加引用”对话框中找到它。
如果没有,则
Microsoft.VisualStudio.DebuggerVisualizers.dll
位于 Visual Studio 安装目录的Common7\IDE\PublicAssemblies
子目录中。 您可以从那里手动添加它。You should be able to find it in the "Add Reference" dialog in the .Net tab.
If not, the
Microsoft.VisualStudio.DebuggerVisualizers.dll
lives in theCommon7\IDE\PublicAssemblies
subdirectory of Visual Studio's installation directory. You could add it manually from there.对于 Visual Studio 2010,
Microsoft.VisualStudio.DebuggerVisualizers
程序集位于C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ReferenceAssemblies\v2.0
下(或相关的程序文件根目录)。对于面向 Visual Studio 2010 的调试器可视化工具,它必须引用此程序集的 10.0 版本,否则它将失败并出现无效转换异常。
For Visual Studio 2010 the
Microsoft.VisualStudio.DebuggerVisualizers
assembly exists underC:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ReferenceAssemblies\v2.0
(or relevant Program Files root).For a debugger visualizer to target Visual Studio 2010 it must reference the 10.0 version of this assembly or it will fail with an invalid cast exception.