VS 2010 类图错误“类型无法编辑...”

发布于 2024-09-03 07:44:20 字数 214 浏览 1 评论 0原文

VS 2010 类图上的一些类以红色标题显示。 “类详细信息”窗口显示所有方法、属性、字段,并且正确地不显示任何事件。但是,每个方法、属性、字段和事件下都有一个条目,说明名称的位置:

“无法编辑该类型,因为 源代码文件包含错误。”

但是,源文件的构建没有错误或警告。

有人看到过这个吗?知道如何修复它吗?

A few of the classes on a VS 2010 class diagram are displayed with a red title. The Class Details window shows all of the methods, properties, fields and correctly shows no events. However, there's an entry under each of methods, properties, fields and events that states where the name should be:

"The type cannot be edited because the
source code file contains an error."

However, the source file builds with no errors or warnings.

Anyone seen this? Any idea how to fix it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情深已缘浅 2024-09-10 07:44:20

重新启动后,错误消失了。我怀疑关闭并重新打开 VS 2010 可能会造成同样的结果。

After rebooting, the error was gone. I suspect just closing and re-opening VS 2010 may have done the same thing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文