Windows Embedded CE 6.00无法.run Net Compact Framework 3.5应用程序 [英] Windows Embedded CE 6.00 cannot .run Net compact Framework 3.5 application

查看:90
本文介绍了Windows Embedded CE 6.00无法.run Net Compact Framework 3.5应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我有一台装有Windows Embedded CE 6.0的设备。众所周知,EWS托管API只能在.NET Framework 3.5及更高版本上使用。

First of all, i have a device with Windows Embedded CE 6.0. As we know, EWS Managed API can only be used on .NET Framework 3.5 and above.

我创建了一个新项目-> Smart Device Project->

I created a new project ->Smart Device Project ->

目标平台:Window CE

Target Platform: Window CE

.NET Compact Framework版本:.NET Compact Framework版本3.5

.NET Compact Framework Version: .NET Compact Framework Version 3.5

模板:设备应用程序

然后我尝试使用EWS API库编写一个程序,以将电子邮件从服务器发送到我的电子邮件,但是出现错误。

Then i tried to use EWS API library to write a program to send email from server to my email but there is an error.

错误1在未引用的程序集中定义了 System.TimeZoneInfo类型。您必须添加对程序集 System.Core,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089的引用。 C:\文档和设置\christopher.lim\我的文档\Visual Studio 2008\项目\SmartDeviceProject1\SmartDeviceProject1\Form1.cs 23 13 SmartDeviceProject1

Error 1 The type 'System.TimeZoneInfo' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. C:\Documents and Settings\christopher.lim\My Documents\Visual Studio 2008\Projects\SmartDeviceProject1\SmartDeviceProject1\Form1.cs 23 13 SmartDeviceProject1

当.NET Framework不兼容时,会发生此错误,这意味着我的Window Embedded CE 6.0无法运行需要.NET Framework 3.5的应用程序。

This error occur when .NET Framework is not compatible which means my Window Embedded CE 6.0 cannot run application which need .NET Framework 3.5.

所以反正我可以升级我的Window CE,以便它可以运行.NET Framework 3.5及更高版本的应用程序?

So is there anyway that i can upgrade my Window CE so that it can run .NET Framework 3.5 and above application??

希望有人可以帮助我。提前致谢。

Hope someone can help me with this. Thanks in advance.

推荐答案

all 迭代中的Compact Framework在CE 6.0(1.0为' t正式受支持,但如果您想使用它,它将运行。

The Compact Framework, in all iterations, will work fine under CE 6.0 (1.0 isn't officially "supported" but it would run if you wanted to use it).

您遇到的问题是编译器问题,而不是运行时问题。错误的根源是在错误中以公钥令牌形式(错误地)指出。 b77a5c561934e089 是桌面框架的公共密钥。

The issue you're seeing is a compiler problem, not a runtime problem. The root of the problem is (cryptically) stated in the error, in the public key token. b77a5c561934e089 is the public key for the desktop framework.

基本上,编译器告诉您嘿,您在引用使用桌面System.Core.dll程序集的DLL,因此您需要添加对该DLL的引用。这样做的问题是,桌面System.Core.dll程序集无法在Windows CE设备上运行。

Basically the compiler is telling you "Hey, you're referencing a DLL that uses the desktop System.Core.dll assembly, so you need to add a reference to that DLL." The problem with that is that the desktop System.Core.dll assembly will not run on a Windows CE device.

您必须使用Compact Framework System.Core.dll(其公共密钥为 969db8053d3322ac )。这意味着您要引用的任何内容(EWS托管API)都必须使用Compact Framework引用进行重新编译,或者您必须找到另一种方式来提供所需的功能。

You have to use the Compact Framework System.Core.dll (which has a public key of 969db8053d3322ac). That means that whatever you're referencing (EWS Managed API) must be recompiled using the Compact Framework references, or you must find an alternate way to provide the feature/function you're after.

这篇关于Windows Embedded CE 6.00无法.run Net Compact Framework 3.5应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆