Can I run a CF.NET 2 application built for WM5 on WM6?

  • Thread starter Hans Nieuwenhuis
  • Start date
H

Hans Nieuwenhuis

Hi,

I've made an application in CF.NET 2 using a Windows Mobile 5 project in
Visual Studio 2005.

Can I run such an application on a Windows Mobile 6 device without doing
anything special? Or do I need to make a new Windows Mobile 6 project in
Visual Studio 2005 and compile the (same) sources in that project?

Do I need to make a CAB file for WM5 and another CAB file for WM6 (with
different compiled executables)?

Hans
 
S

Simon Hart [MVP]

Your WM5 app should run fine on WM6 as WM6 is still based on CE 5.0 as is WM5.

There are a few shell extensions with WM6 so if you've written your code
properly, then there should be no problems.
 
H

Hans Nieuwenhuis

Thanks for your answer, Simon.

So no need for me to make a new WM6 project in Visual Studio?

And no need to make 2 CAB's?

I guess if I install the Windows Mobile 6 SDK on my PC, I can select a WM6
emulator when testing my WM5 project (in Visual Studio 2005)?

Hans
 
P

Peter Foot

No need to create a separate project no. You'll also find that once you've
installed the WM6 SDK if you want to deploy to the WM6 emulator you'll have
to change the target platform of your project. You can change this back and
forward as required though. You will need to be careful not to introduce any
code based on WM6 new features as then your project will not work on WM5
devices.

Peter

--
Peter Foot
Microsoft Device Application Development MVP
peterfoot.net | appamundi.com | inthehand.com
APPA Mundi Ltd - Software Solutions for a Mobile World
In The Hand Ltd - .NET Components for Mobility
 
S

Simon Hart [MVP]

There is no need to have two different CABs (depending on what your code is
doing and how you have written it). But be sure to set the OSVersionMax
property of the CAB is greater than or equal to 6.0. To target WM6 you'll
need to install WM 6 SDK, then simply change the Target Platform in your
project to WM6 then you'll be able to select the WM6 emulator.
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com
 
H

Hans Nieuwenhuis

Thanks Peter and Simon!

I'm downloading the WM6 Professional Refresh SDK now.

OSVersionMax of my CAB is 6.99 (the default).

Hans
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top