无法重构(Shift-alt-f10,重命名等) [英] Unable to refactor, (Shift-alt-f10, rename etc)

查看:215
本文介绍了无法重构(Shift-alt-f10,重命名等)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有VS2005开发人员和2008 Visual C#Express.

我突然停止能够在VS2005中重命名类,方法和属性,并通过应用程序对其进行了重构.

I have suddenly stopped being able to rename classes, methods and properties in VS2005 and have that refactored through the application.

假设我的代码中有

Class MyClass {}

Class MyClass {}

如果我将名称编辑为MyClass2,则MyClass下方会出现一个红色的小方框,指示重构可用.如果我将鼠标悬停在它上面,则会出现一个带有向下箭头的黄色小框,并在工具提示上显示用于更新对重命名对象(Shift-Alt-F10)的引用的选项".

If I edit the name to MyClass2 then the tiny red box appears underneath MyClass indicating refactoring is available. If I hover over it then the little yellow box appears with a down arrow and a tooltip saying "Options to update references to the renamed object (Shift-Alt-F10)".

但是,一旦我单击黄色框,它就会消失并且什么也没有发生. C#2008仍然有效.我不记得在任何地方更改任何选项. (但是您知道它是什么样的).这突然发生了,我不知道为什么.

However as soon as I click on the yellow box it disappears and nothing happens. C#2008 still works. I do not remember changing any options anywhere. (But you know what it is like). This happened abruptly and I do not know why.

我可以在解决方案资源管理器中更改类名,并且确实可以.有什么想法吗?

I can change a class name in the Solution Explorer and this does propogate. Any ideas?

推荐答案

如果您描述一个可重复的步骤,以更好地理解.

无论如何,如果您在VS 2005中创建一个全新的项目,问题仍然存在吗?

谢谢


这篇关于无法重构(Shift-alt-f10,重命名等)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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