类重命名使我无法找到定义错误 [英] Class renaming gives me a Failed to find definition error

查看:74
本文介绍了类重命名使我无法找到定义错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

当我尝试更改页面类的名称时,出现此消息:

找不到定义


例如,如果尝试从以下位置更改页面类名称,则会出现此错误:

public partial class _Default : System.Web.UI.Page


至:

public partial class _HomePage: System.Web.UI.Page

解决方案

快速浏览Google之后,您似乎并不孤单. (在无法找到定义"上进行搜索)

在我查看过的所有情况下,MS都将线程标记为已解决为不可重现".

愚蠢的问题,但我想您已经尝试了通常的方法:

打开另一个项目,重新打开一个问题,然后重试.
关闭VS,重新打开,然后重试.重新启动VS 2005.
尽管我已经解释了为什么40分钟前我没有受到粗鲁的对待,但我还没有收到您的道歉.

现在,那个是不礼貌的.


Hi everybody,

When I try to change the name of page class, this message appears:

Failed to find definition


As an example, I get this error if I try and change the page class name from:

public partial class _Default : System.Web.UI.Page


to:

public partial class _HomePage: System.Web.UI.Page

解决方案

After a quick google it would seem that you are not alone. (searched on ''Failed to find definition'')

In all cases that I looked at MS marked the thread ''Resolved as not reproducible''.

Silly question, but I assume that you have tried the usual:

Open a different project, reopen problem one and try again.
Close VS, reopen and try again.


A quick google reveals that this has been occasionally observed with VS 2005. The workaround offered by some people (not verified to always work) is to close and restart VS 2005.


It took you roughly 20 minutes to falsely accuse me of being impolite.

In spite of my having explained why I was not being rude over 40 minutes ago, I have not yet received your apology.

Now that is impolite.


这篇关于类重命名使我无法找到定义错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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