简体   繁体   English

DataTable 可视化工具从我的 Visual Studio 中消失了

[英]DataTable visualizer disappeared from my Visual Studio

A while ago I noticed I don't have a magnifying-glass next to my datatables.不久前,我注意到我的数据表旁边没有放大镜。 I used to have it, and somehow, sometime, it disappeared...我曾经拥有它,不知何故,有时它消失了......
Has anyone seen this happen?有没有人看到这种情况发生? Do you know how to help me view my datatables again?你知道如何帮助我再次查看我的数据表吗?

Update: I'm still clueless about this.更新:我对此仍然一无所知。 Could anyone point me in some direction, where should I even start looking for an answer?任何人都可以指出我的方向,我应该从哪里开始寻找答案? Thanks a lot.非常感谢。

Update: I changed to a new computer, and still the same problem.更新:我换了一台新电脑,还是同样的问题。 But I pinpointed it to being only in Visual Studio 2005. On Visual Studio 2008 I have perfectly normal DataSet and Datatable visualizers.但我指出它只在 Visual Studio 2005 中。在 Visual Studio 2008 上,我有完全正常的 DataSet 和 Datatable 可视化工具。 So I tried re-installing VS2005, to make sure all the components were installed, nothing left out - but Nada.所以我尝试重新安装 VS2005,以确保安装了所有组件,没有遗漏任何东西 - 除了 Nada。 Still no visualizer.仍然没有可视化工具。

Update: Found the solution to my problem: My answer更新:找到了我的问题的解决方案: 我的答案

I was really bothered by the problem, so I turned to Microsoft support, and they solved my problem!我真的被这个问题困扰,所以我求助于微软支持,他们解决了我的问题! The short solution is that apparently one of the DLL's in the My Documents\\Visual Studio 2005\\Visualizers folder was corrupted.简短的解决方案是,显然 My Documents\\Visual Studio 2005\\Visualizers 文件夹中的 DLL 之一已损坏。 I deleted all the contents of the folder, and the visualizer came back.我删除了文件夹的所有内容,可视化工具又回来了。
The long answer can be found in this post written by Faruk Celik - the person from Microsoft who solved my problem.可以在 Faruk Celik 撰写的这篇文章中找到详细的答案,他是来自 Microsoft 的人,他解决了我的问题。

  1. Create a new clean project, does the Visualizer show up there?创建一个新的干净项目,Visualizer 是否显示在那里?
  2. Check if this file exist: "\\Program Files\\Microsoft Visual Studio 8.0\\Common7\\Packages\\Debugger\\Visualizers\\Microsoft.VisualStudio.Debugger.DataSetVisualizer.dll"检查此文件是否存在:“\\Program Files\\Microsoft Visual Studio 8.0\\Common7\\Packages\\Debugger\\Visualizers\\Microsoft.VisualStudio.Debugger.DataSetVisualizer.dll”
  3. Check if the dll is loaded in Visual Studio, Open your project, then open anther Visual Studio, attach the debugger into the first Visual Studio (Make sure that managed debugger is selected).检查 dll 是否在 Visual Studio 中加载,打开您的项目,然后打开另一个 Visual Studio,将调试器附加到第一个 Visual Studio(确保选择了托管调试器)。 Inside the debugging Visual Studio open Debug/Windows/Modules to see if the DataSetVisualizer is loaded.调试Visual Studio 中打开 Debug/Windows/Modules 以查看是否加载了 DataSetVisualizer。
  4. try devenv /ResetSettings from an admin console.从管理控制台尝试devenv /ResetSettings

I know this is an old post, but I have been fighting this same issue.我知道这是一个旧帖子,但我一直在与同样的问题作斗争。 Nothing solved my problem... I finally figured out that I had been running Visual Studio in compatibility mode (Windows 7 os).没有什么能解决我的问题......我终于发现我一直在兼容模式下运行 Visual Studio(Windows 7 操作系统)。 Once I ran devenv.exe without compatibility mode set, the visualizers showed up again.一旦我在没有设置兼容模式的情况下运行 devenv.exe,可视化工具再次出现。

I am using Visual Studio 2017 and I had the same issue.我正在使用 Visual Studio 2017 并且遇到了同样的问题。 I realised the visualizers folder is missing in my documents.我意识到我的文档中缺少可视化工具文件夹。 I think this is something to do with the recent windows upgrade on the office computer.我认为这与最近办公室计算机上的 Windows 升级有关。 I have resolved it by creating an empty Visualizers folder.我通过创建一个空的 Visualizers 文件夹来解决它。

试试devenv /resetskippkgs ...

I have the same problem and it drives me crazy.我有同样的问题,这让我发疯。 Finally, I have it works after trying many advice from Googling and trail and error.最后,在尝试了谷歌搜索的许多建议以及跟踪和错误后,我让它起作用了。

  1. \\Common7\\IDE\\devenv.exe /resetuserdata at the command prompt. \\Common7\\IDE\\devenv.exe /resetuserdata 在命令提示符下。
  2. I rename Microsoft.VisualStudio.Debugger.DataSetVisualizer.dll to Microsoft.VisualStudio.Debugger.DataSetVisualizer.dll.test on both C:\\Program Files\\Microsoft Visual Studio 8\\Common7\\IDE\\PublicAssemblies And \\My Documents\\Visual Studio 2005\\Visualizers我在 C:\\Program Files\\Microsoft Visual Studio 8\\Common7\\IDE\\PublicAssemblies 和 \\My Documents\\Visual Studio 2005\\ 上将 Microsoft.VisualStudio.Debugger.DataSetVisualizer.dll 重命名为 Microsoft.VisualStudio.Debugger.DataSetVisualizer.dll.test展示台

I was having the same problem, nothing would appear when I hovered over my dataset variable.我遇到了同样的问题,当我将鼠标悬停在我的数据集变量上时什么也不会出现。 I was finally able to see the dataset visualizer when I added my.forms in front of my dataset variable in the Watch window当我在 Watch 窗口中的数据集变量前面添加 my.forms 时,我终于能够看到数据集可视化工具

Execute Visual Studio as administrator.以管理员身份执行 Visual Studio。 Right click and execute as administrator and the magnifying-glass appears next to datatables.右键单击并以管理员身份执行,数据表旁边会出现放大镜。

I tried everything here but the only thing that worked for me was to overlay 2 folder using someone else VS 2019 that had the visualizers working.我在这里尝试了所有方法,但唯一对我有用的是使用其他人 VS 2019 覆盖 2 个文件夹,这些文件夹使可视化工具正常工作。

  1. C:\\Users\\XXXXXXXX\\Documents\\Visual Studio 2019\\Visualizers --< XXXXXXXX = the user folder C:\\Users\\XXXXXXXX\\Documents\\Visual Studio 2019\\Visualizers --< XXXXXXXX = 用户文件夹
  2. C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\Common7\\Packages\\Debugger\\Visualizers C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\Common7\\Packages\\Debugger\\Visualizers

I tried everything in this post but nothing worked for me.我尝试了这篇文章中的所有内容,但没有任何效果。 I am running Windows 7 64-bit.我正在运行 Windows 7 64 位。 Eventually I was able to find a solution in this post最终我能够在这篇文章中找到解决方案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM