Compact Framework编译问题
我是 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在尝试编译完整框架的代码。 .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