Saturday, 15 August 2015

How to get app version on Windows Phone Universal App? -



How to get app version on Windows Phone Universal App? -

i'm trying utilize assembly app version, doesn't have getexecutingassembly() method on universal app, how can it?

string version = "v " + assembly.getexecutingassembly().fullname.split(',')[1].split('=')[1];

you can through assembly via reflection:

string version = this.gettype().gettypeinfo().assembly.getname().version.tostring(4);

(from chris sienkiewicz's blog)

windows-phone-8.1

No comments:

Post a Comment