How can I get the current version of the app .netcf 2.0

Hello,

I am wanting to get the current version of the wm 5.0 application that is on the mobile device at runtime. How can I accomplish this as the .netcf doesn't support Diagnostics.FileVersionInfo.GetVersionInfo. Thanks.

John



Answer this question

How can I get the current version of the app .netcf 2.0

  • zxeltor

    If you want to get the version of your current assembly you may use code like this:
    System.Version ver = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;

    You may also load another assemby with Assembly.Load/LoadFrom and extract the version in the same manner.

    You may use the OpenNETCF implementation of the FileVersionInfo class in the OpenNETCF.Diagnostics namespace, also.




  • How can I get the current version of the app .netcf 2.0