简体   繁体   中英

Can .Net Compact Framework 2.0 be installed on a Windows Embeded Handheld 6.5 Classic terminal?

I have a customer with files that are to be installed on a Unitech PA986-II terminal (CPU Marvel PXA320), but some of the packages will not install because .Net 2.0 is not present. So far I have been unable to find a version that will install.

The about information says that it is running CE OS 5.2.23152 Build 23152.5.3.12. The cgccutil reports that .NET Compact Framework 3.5.9198.0 is installed.

I've tried NETCFv2.wce5.armv4i.cab but that fails after the installation starts, but before it asks for a location.

Side-by-side installation is supported, but largely unnecessary because the CF 3.5 runtimes are capable of running CF 2.0 assemblies. In over 90% over of the cases I've seen, the 2.0 stuff just works with no intervention.

Since you're asking, I'm going to assume you fall into the other 10% and your application isn't running. In those cases you can either explicitly tell the app to run under 3.5 by putting this in the app.config file:

<configuration>
  <startup>
    <supportedRuntime version="v3.5.9198"/>
  </startup>
</configuration>

Or you can force the 3.5 runtimes to use 2.0 compatibility mode by putting this into your app config:

<configuration>
  <runtime>
    <compatibilityversion major="2" minor="0"/>
  </runtime>
  <startup>
    <supportedRuntime version="v3.5.9198"/>
  </startup>
</configuration>

More info on configuring the runtime is available on MSDN .

I used the NETCFv2.wm.armv4i.cab from the Compact Framework 2.0 SP2 SDK. Even though this is not a Windows Mobile machine it installed. I edited the original file, NETCFv2.wce5.armv4i.cab , using Win CE Cab Manager removing the PocketPC restriction. That had prevented it from running before. It failed during installation.

After installing the Mobile version the SQL Client 2.0 installed without error.

For what it's worth - both cab files are set to CE 6.999 as the upper bounds it could install to.

如果使用Visual Studio 2008部署应用程序,它将至少在Windows Embedded CE 6.0上自动安装SQL mobile和压缩框架。

我发现在VS 2008中,您可以创建一个智能设备CAB项目,该项目将包含您的应用程序所需的所有内容,以便客户无需使用VS即可安装该应用程序。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM