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:

InRiver: Not loading your extensions?

(You really need to in the loop to appreciate the issue this post addresses). Man, I've been fighting this problem for hours before I ...