资源编辑器在 Visual Studio 2008 中不可用 [英] Resource editor not available in Visual Studio 2008
问题描述
当我在 Visual Studio 2008 中右键单击资源文件时,收到以下消息:
When I right-click on a resource file in Visual Studio 2008, I get the following message:
没有可用的编辑器'D:\MyPath\MyProject\Resources.de.resx'.确保文件的应用程序类型 (.resx) 已安装.
There is no editor available for 'D:\MyPath\MyProject\Resources.de.resx'. Make sure the application for the file type (.resx) is installed.
知道如何解决这个问题吗?到目前为止,我一直坚持将资源文件作为 XML 文本打开.
Any idea on how to solve this issue? By now, I am stuck with opening the resource files as XML text.
我正在使用 Visual Studio 2008 专业版.
I am working with Visual Studio 2008 Professional Edition.
更新:
很遗憾(对我而言),卸载并重新安装 Visual Studio 2008 专业版及其服务包并没有解决问题.
Unfortunately (for me), uninstalling and installing again Visual Studio 2008 Professional Edition and its service pack did not solve the problem.
顺便说一句,我也看不到任何 C# 项目属性页面.当我尝试向他们展示时,什么也没有发生.
Incidentally, I cannot see any C# Project Properties page, either. When I try to show them, nothing happens.
更新 2:
我终于解决了我的问题.我添加了一个自己的答案来解释如何.
I finally solved my problem. I added an own answer explaining how.
推荐答案
我终于解决了我的问题.我所做的,灵感来自另一个问题的答案,是:
I finally solved my problem. What I did, inspired by this answer to another question, was:
- 重新安装 Visual Studio - 没有成功.回顾一下,也许我的卸载没有完成 - 但我真的认为我已经卸载了它.
- 以安全模式启动 Visual Studio:在 Windows 命令提示符(开始|运行...)中,键入
devenv/safemode
. - 在项目"菜单中,单击属性".出现一条消息,指出由于先前的错误,某些相关包(例如项目设计器)尚未加载,我可以通过使用
devenv/resetskippkgs
启动 Visual Studio 来再次加载它.执行此操作后,项目属性将正常加载.因此,可以查看属于这些属性的资源.
- Reinstall Visual Studio - to no success. Looking at it retrospectively, maybe my uninstall wasn't complete - but I really thought I had uninstalled it.
- Start Visual Studio in safe mode: from the Windows command prompt (Start|Run...), type
devenv /safemode
. - At the Project menu, click Properties. A message appeared saying that some relevant package (something like Project Designer) had not been loaded due to previous errors, and I could load it again by starting Visual Studio with
devenv /resetskippkgs
. After doing so, the project properties are loaded normally. As a consequence, the resources, which belong to these properties, can be viewed.
所以,总而言之,我只需要利用 devenv/safemode
,之后 Visual Studio 建议我使用 devenv/resetskippkgs
.
So, to summarize, I just needed to take advantage of devenv /safemode
, after which Visual Studio suggested me to use devenv /resetskippkgs
.
这篇关于资源编辑器在 Visual Studio 2008 中不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!