使用 OpenNetCF 编译项目时出现错误

发布于 2024-11-01 11:02:50 字数 305 浏览 1 评论 0原文

我需要处理使用 OpenNetCF 圆形按钮的旧项目,

我将所有 OpenNetCF dll 引用到该项目。

我有 2 个问题:

  1. 我看不到表单上的圆形按钮

  2. 编译时我看到此错误:

找不到类型 'MyControl.Controls.RoundPictureButton'。 请确保装配 包含此类型的内容被引用。 如果此类型是您的一部分 开发项目,确保 该项目已成功 已建成。

I need to work on old project that use OpenNetCF round buttons

I reference all the OpenNetCF dll to the project.

I have 2 problems:

  1. I can't see the round button on the forms

  2. when I compiled I see this error:

Could not find type
'MyControl.Controls.RoundPictureButton'.
Please make sure that the assembly
that contains this type is referenced.
If this type is a part of your
development project, make sure that
the project has been successfully
built.

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

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

发布评论

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

评论(2

迟到的我 2024-11-08 11:02:50

错误显示“MyControl.Controls.RoundPictureButton”,请注意其中的粗体部分。该命名空间不是来自 OpenNETCF(我记得 OpenNETCF 没有 RoundPictureButton),它是来自其他程序集或位置的控件,编译器无法找到它。您需要添加对包含该控件的程序集的引用,或者需要添加定义它的源文件。

The error says 'MyControl.Controls.RoundPictureButton' Note the bolded portion there. The namespace is not from OpenNETCF (OpenNETCF doesn't have a RoundPictureButton that I recall), it's a control from some other assembly or location and the compiler is unable to locate it. You need to either add a reference to the assembly that contains that control or you need to add the source file that defines it.

停滞 2024-11-08 11:02:50

也许您的解决方案配置发生了某些变化,因此您可能错过了要在解决方案中添加的某些项目,或者只是有一天被移动并错误地从解决方案中删除。

再见。

Maybe something changed on your solution configuration, so it's possible that you have missed some project to be added on the solution, or just have been moved some day and deleted from the solution by mistake.

See you.

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