Compact Framework编译问题

发布于 2024-09-27 06:39:44 字数 635 浏览 2 评论 0原文

我是 Compact Framework 的新手,我需要为 Windows CE 6.0 设备(我已经安装了 CF 3.5)编译一个小项目。

我正在使用 Visual Studio 2005。当创建一个新项目时,例如:“其他语言 -> Visual Basic -> SmartDevice -> Windows CE 5.0”,我可以编译一个简单的表单,将其放在我的移动设备上并启动它。

我的问题始于我想编译另一个项目,我收到以下错误消息:

Me.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter

错误 6 'MiddleCenter' 不是 'System.Drawing.ContentAlignment' 的成员。

看起来我不完整/System.Drawing 或类似内容的参考太旧,但不知道该怎么办...

我正在使用以下 dll -> Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\System.Drawing.dll

是否可以找到较旧的紧凑框架?

预先感谢您的帮助!

安迪

I'm brand new to Compact Framework and I need to compile a small project for a Windows CE 6.0 device (on which I already installed CF 3.5).

I'm using Visual Studio 2005. When creating a new project like : "Other languages -> Visual Basic -> SmartDevice -> Windows CE 5.0", I can compile a simple form, put it on my mobile device and launch it.

My problems start where I want to compile another project, I get the following error message :

Me.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter

Error 6 'MiddleCenter' is not a member of 'System.Drawing.ContentAlignment'.

It looks like I'm incomplete/too old reference for System.Drawing or something like that, but don't know what to do...

I'm using the following dlls -> Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\System.Drawing.dll

Is it possible to find an older compact framework ?

Thanks in advance for your help !

Andy

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

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

发布评论

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

评论(1

梦屿孤独相伴 2024-10-04 06:39:44

您正在尝试编译完整框架的代码。 .Net CF 不支持 MiddleCenter 属性。请参阅:

http://msdn。 microsoft.com/en-us/library/system.drawing.contentalignment(v=VS.80).aspx

You're trying to compile code for the full framework. The MiddleCenter property is not supported in .Net CF. See:

http://msdn.microsoft.com/en-us/library/system.drawing.contentalignment(v=VS.80).aspx

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