使用 OpenNetCF 编译项目时出现错误
我需要处理使用 OpenNetCF 圆形按钮的旧项目,
我将所有 OpenNetCF dll 引用到该项目。
我有 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:
I can't see the round button on the forms
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
错误显示“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.
也许您的解决方案配置发生了某些变化,因此您可能错过了要在解决方案中添加的某些项目,或者只是有一天被移动并错误地从解决方案中删除。
再见。
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.