Leon Meijer's Weblog

About my personal life, technology and business/work related...
posts - 128, comments - 334, trackbacks - 0

Identity the .NET Compact Framework version

Last week I wrote an application for my employer that uses the .NET Compact Framework for mobile devices. One of the requirements was that it runs on the Compact Framework 1.0. This is because Windows Mobile 5.0 ships with this framework and version 2.0 of the Compact Framework needs to be installed in order to run 2.0 applications.

To test my application, I used the Device Emulator with Windows Mobile 5 and 6 images. I was looking for a way to discover the version of the Compact Framework on a device. I developed a small application with 1 button on the form. Pressing the button executes this:

MessageBox.Show(System.Environment.Version.ToString());

And displays: 1.0.4292 (using a clean WM5 image in the device emulator).

A site on the the net outlines the different version numbers of the Compact Framework:

1.0 RTM = 1.0.2268.0
1.0 SP1 = 1.0.3111.0
1.0 SP2 Recall = 1.0.3226.0
1.0 SP2 Beta = 1.0.3227.0
1.0 SP2 Final = 1.0.3316.0
1.0 SP3 = 1.0.4292.00
2.0 RTM = 2.0.5238.0
2.0 SP1 = 2.0.6129.0
2.0 SP2 = 2.0.7045.0

Print | posted on Tuesday, June 05, 2007 3:07 PM |

Powered by: