Visual Studio 2008 XML 编辑器消失了? [英] Visual Studio 2008 XML editor disappeared?

查看:33
本文介绍了Visual Studio 2008 XML 编辑器消失了?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Visual Studio xml 编辑器不见了.因此,当我打开例如 web.config 文件时,它显示为纯文本文件.如果我右键单击 -> 打开方式:XML 编辑器选项,它不再存在.以前有人遇到过这个问题吗??我试过修复安装和卸载/安装,但它没有修复它.感谢您的帮助.

My visual studio xml editor is gone. So when I open for example a web.config file it's shown like a plain text file. If I right click -> Open with: the XML Editor option it's not longer there. Anyone had this problem before??. I've tried repairing the installation and uninstall/install but it didn't fixed it. Thanks for the help.

推荐答案

在安装/重新安装后我能看到的唯一问题是包加载失败.尝试从命令外壳运行以下命令.我假设 Visual Studio 安装在位置C:\Program Files\Microsoft Visual Studio 9.0"

The only issue that I can see surviving a install/reinstall is a supressed package load failure. Try running the following from a command shell. I'm assuming that Visual Studio is installed at the location "C:\Program Files\Microsoft Visual Studio 9.0"

"c:\program files\microsoft Visual Studio 9.0\common7\ide\devenv.cmd" /ResetSkipPkgs

这将重置所有跳过的包抑制.

This will reset all skipped package suppression.

如果这有效,那么在启动 VS 或加载文件时的某个时间点,您会看到一个密码对话框,上面写着某些 XML 包无法加载..."并且有一个是/否选项.选择 yes 将阻止 VS 将来加载该包,从而阻止加载 XML 编辑器.

If this works then at some point in time when starting VS or loading a file you were presented with a crytpic dialog that said "Some XML Package failed to load ... " and had a yes/no option. Choosing yes will prevent VS from loading that package in the future and hence preventing the XML editor from loading.

我相信这个值存储在用户注册表配置单元中.所以它有可能在卸载后仍然存在.如果这有效,请告诉我,因为我想提交错误.

I believe this value is stored within a user registry hive. So it's possible that it would survive uninstall. If this works please let me know as I'd like to file a bug.

编辑 我能够与此/ResetSkipPkgs 功能的所有者确认此问题将在 Visual Studio 的下一个版本(VS2008 之后)中修复.

Edit I was able to confirm with the owner of this /ResetSkipPkgs feature that this issue will be fixed in the next version of Visual Studio (post VS2008).

这篇关于Visual Studio 2008 XML 编辑器消失了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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