枚举属性使我的 WinForms 设计器崩溃

发布于 2024-10-06 05:29:03 字数 335 浏览 0 评论 0原文

将我们的 .Net cf 解决方案从 Visual studio 2005 切换到 2008 后,所有使用枚举属性的控件的设计器视图都已损坏。出现错误消息:

类型“Microsoft.CompactFramework.Design.UnsafeUserControl”没有名为“PropertyName”的属性。

如果我将属性更改为 int 它可以工作,但随后我会在设计器中丢失所有漂亮的枚举描述。

关于如何解决这个问题有什么想法吗?

是的,我们在 DesignTimeAttributes.xmta 中将 DesktopCompatible 设置为 true。它在 VS 2005 中有效。

After switching our .Net cf solution from Visual studio 2005 to 2008, the designer view for all controls which use enum properties have broken down. With the error message:

The type 'Microsoft.CompactFramework.Design.UnsafeUserControl' has no property named 'PropertyName'.

If I change the property to an int it works, but then I loose all my nice Enum-descriptions in the designer.

Any ideas on how to fix this?

And yes, we set DesktopCompatible true inDesignTimeAttributes.xmta. It worked in VS 2005.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文