how get version CF

  • Thread starter Thread starter Magic Gooddy
  • Start date Start date
using System;
using System.Windows.Forms;

class C {
static void Main () {
MessageBox.Show(
String.Format(
"PlatformID = {0}\nVersion = {1}",
Environment.OSVersion.Platform,
Environment.OSVersion.Version));
}
}

Unfortunately I do not know the version number to CF version mapping by
heart.
 
Well you could be certain that you installed correctly by using a device
that doesn't have CF 2.0 in ROM (pretty easy there) then installing CF 2.0
SP1 and running an app targeting CF 2.0. If it runs, you installed
properly.

I'm not going to take the time to do the steps that you yourself can do.

-Chris
 
I just noted my suggestion does not deliver the right answer, as the OS
Version and CF version are not related. Sorry for the confusion.
 
If you are just after the compact framework version that is installed
on the handheld device, and you don't need it in your program, you
could just type in Start-Run:

"\Windows\cgacutil.exe" or "\Windows\cgautil.exe"
 
Edz said:
If you are just after the compact framework version that is installed
on the handheld device, and you don't need it in your program, you
could just type in Start-Run:

"\Windows\cgacutil.exe" or "\Windows\cgautil.exe"
 
OK, I run cgautil.exe and see 2.06103.0. but I can't see it is .NET Compact
Framework 2.0 SP1 or not.
May be you don't know too?
"kgnoutlaw" <[email protected]> Ñообщил/Ñообщила в
новоÑÑ‚ÑÑ… Ñледующее:
 
Once again, if you don't have CF2SP1 installed, then you install it and
that's the result, then by general logic it must be the version number for
the SP1 beta.

-Chris
 
Back
Top