06 July, 2011

Get the versioninfo of a WP7 application

Quick cut/paste for the masses:

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

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

This will return to you this string: ‘Version

StackOverflow Tags:

No comments:

iPhone/XCode - not all cases are equal!

This bit me! Having made some changes to an iPhone application (Obj-C); everything worked fine in the simulator. But, when deploying the s...