CE 4.2 which framework?

Hi All

I'm new to the CE environment and am trying to write an application for a wireless handheld device. The device has CE 4.2 and I can't get a clear understanding of which combination of development tools I need to install and which framework I need. Can someone point me in the right direction

Thanks,

Thad



Answer this question

CE 4.2 which framework?

  • Luis Esteban Valencia Muñoz

    If you have NETCF installed (or in ROM) there will be \windows\cgacutil.exe. Launch it without arguments and it would show NETCF's version(s).



  • dotHuman

    This post is confusing. CF 2.0 isn't supported under CE.NET 4.2, or at least I thought so.

    Most of the devices I have are CE 4.2, and I'm reluctant to update to VS2005 because it took so long to get VS.NET working right. This posts has two things that aren't clear.

    Can you write applications (CF 1.1 C#) to CE.NET 4.2 from VS 2005
    and
    Can you install, run, develop and debug CF 2.0 on a CE.NET 4.2 device

    Thanks

  • Dave Patricio

    I can't install NETCF 2.0 SP1 to my WinCE 4.2 device (ARM). I think my Mio C310x
    GPS navigator does not have enough space. At the end of .CAB installation, it says

    "Installation error. Stop all applications and processes, maximize available storage space,
    and run installation again. Support info: 3."

    nsical.


  • tdanley

    Hi,

    See Mo Braga's post above. Also, see CF 2.0 SP1 document:

    Additional Information

    .NET Compact Framework 2.0 Service Pack 1 details:

    Added Features:

    • Added support for WindowsCE 4.2 in both the CAB
      installation and a Platform Builder Update (For more information on the
      Platform Builder Update, see
      Windows CE Download Center.)

    From this what I understand is one may be able to install NET CF 2.0 SP1 on a
    Windows CE 4.2 NET, and run (not debug) an application developed in VS 2005.
    So, as far as I know, the answer to your questions:

    1. No.
    2. Yes, except for debugging. Isn't this Mo Draga describes above
    I am a newbie though. So I may be wrong.

    Thanks,
    nsical.


  • GGardiner

    CE 4.2 will only run CF 1.1. (2.0 isn't supporting CE 4.2) Visual Studio 2003 works with it. I haven't tried 2005, but it supposed to. You'll need:

    Visual Studio (2003 or 2005)
    ActiveSync 3.8 or later
    Manufacturers SDK to use some of the other CE tools (remote registry editor, etc)

    If the manufacturer of the CE 4.2 included the CF on the device, you won't need to install it. Although the visual studio will sometimes install it right on top of the orginal one. In either case, it should work.

  • hashbrown

    Well, I've just succeeded setting up an environment that consists of VS 2005, Win CE .NET 4.2 and .NET CF 2.0. I am now able to develop, build, deploy and debug VB.NET applications directly to the device.

    To achieve that I had to do the following:

    - Removed NET CF 1.0 from the device.
    - Cleared as much space as possible on the device, because, even though the device is 32MB and more than 20MB was free, the .NETCF 2.0 installation demanded nearly it all.
    - Updated ActiveSync to 4.5
    - Manually copied NETCFv2.wce.ARMV4.cab to the Application directory on the device
    - Double-tapped the CAB file. The CF installed. Checked using cgautil.exe.
    - Back to VS2005, created a Device Application. Added some hello world code, added a SQL Server 2005 Compact File (this is only supported under CF 2.0).
    - Deployed targetting 'Pocket PC 2003 Device'. (VS2005 deployed the CF 2.0 again, plus a System_SR_ENU.cab. I aborted the CF2.0 installation, but went on and installed the SR. Later on I disabled this behaviour by selecting my project, Properties, and unchecking 'Deploy the latest version of the framework (including SPs)'.
    - VS2005 still installed 3 SQLServer-related cabs and... presto! My hello world application was launched on the mobile. By placing breakpoints in my code on the PC and executing on the mobile, VS2005 stops in the correct line, highlights it in yellow, I can use the immediate window, etc.

    I hope others can share my enthusiasm, after some weeks of hard work on this.


  • Tridex

    Did you manage to install I have the same problems.. with no more ideas :-(

    BostiG

  • reya276

    Based on recent experience, I can ensure that:

    * You can write CF 1.0 to CE .NET 4.2 from VS 2005. I used VB.NET, and see no reason why C# should not work either. When creating the project, make sure you select a Device Application (1.0) project template. You will have to add a CAB project to your solution, create a CAB, manually copy it to the device, manually install it, and it will run. You cannot debug though.

    * I have not tried CF 1.1.

    * You can install, run, develop and debug CF 2.0 on a CE .NET device from VS 2005. I am currently converting an application from VB.NET to C#, and both work well. When deploying, target Pocket PC 2003 Device.

    Good luck.


  • EnigMa_AnGeL

    Also, control panel->Remove Programs show the programs installed. For 2.0, you see
    2.0.

    I tried installing NET CF 2.0 provided in Visual Studio 2005 in my Mio C310x GPS
    navigator running Win CE 4.2. After uninstalling a lot of other stuff, it installed giving
    a warning that it may not work under Win CE 4.2. But after that ActiveSync 4.5 stopped
    working, I couldn't deploy my prog. from Visual Studio 2005 trial.

    Too bad Visual Studio 2003 does not have a trial version.

    nsical.


  • MattWilkinson2006

    VS 2005 does not support CE 4.2 devices. However, NETCF V2 SP1 includes runtime only support for CE 4.2.

    You might be able to create CE5 project in VS 2005 and deploy/debug on to CE 4.2 device assuming NETCF V2 SP1 would be installed manually on to it.

    You can also debug/deploy on CE 5 device which is fully supported by VS 2005 and run application on legacy CE 4.2 devices.

    Another way to go would be to use VS 2003 Pro or above which supports CE 4.2 devices with NETCF V1.



  • chaza

    Thanks,

    How can I tell if the framework has been installed on the device I looked in the windows folder but there seems to be no reference to any framework.

    Thad


  • rknh_20

    A note on debugging CF 2.0 on Win CE .NET:

    You place breakpoints in your code in VS 2005, click the green triangle to execute (or press F5), and select Pocket PC 2003 Device. The application will be launched on the mobile. You then interact with the application there. When you reach the breakpoint, VS 2005 will stop. The focus will be on the line with the breakpoint. You can inspect variables, the stack, use the immediate window, as you would normally when developing to your local PC.

    However, changes that you make to your code while debugging are not immediately reflected on the mobile. If you make any change to the code, you have to stop the application in VS 2005 (blue square icon on toolbar). The program unloads on the mobile (but not always, sometimes you have to soft boot the device) and you have to re-run in VS 2005 to see the effect of your changes.

    Hello Project Managers: The debug phase of a mobile device development takes at least twice the time (optimistically) of that of a normal desktop development!


  • lawlessSaturn

    ok let's see...
    I develope mobile app.lication with VS2005 for both WinMobile 2003SE /CE 4.2/Mobile5/CE5
    and i also support both Framework .Net CF 1SP3 and CF2.0SP1

    Facts:
    -> With VS2005 it is possible to deploy a PocketPC2003Se project to CE4.2 without any troubles
    -> It is possible from VS2005 to write application for CE.Net 4.2 with CF1 (just open your VS2003 project)
    -> As far as you have CF2SP1 installed it is possible to develope applications with VS2005 for your CE4.2 device

    What is your problem by these issues Do you have a deplyoment problem or your solution is not compilable with VS2005
    Tamas

  • Frances83

    Few corrections:

    “You can install, run, and you might be able to develop and debug CF 2.0 on a CE .NET device from VS 2005."

    Use CE 5.0 project template to get correct view in designers. Application debugging and deployment would work in many cases, but it is not guaranteed nor supported. NETCF V2 must be deployed manually to CE 4.2 device.



  • CE 4.2 which framework?