Add Version to PhoneHelper ( assembly version )

Jul 28, 2011 at 10:50 AM

Please add following snippet to the PhoneHelper class

public static class Utilities
{
  /// 
  /// Gets the version info of the executing assembly.
  /// 
  /// 
  public static string GetVersionInfo()
  {
    string asmName = Assembly.GetExecutingAssembly().FullName;  //format = HelloWorld, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null

    string[] splits = asmName.Split(',');
    return splits[1]; //Version 1.0.0.0
  }
}