Get the assembly version for Universal PCL. RRS feed

  • Question

  • I'm creating a Universal PCL. So it's targeting Windows 8.1 and Windows Phone 8.1. I'm trying to figure out how to get the version number for that universal PCL assembly. Everything I'm finding is about get the appxPackage version for the standard apps, not a PCL itself.



    Tuesday, May 27, 2014 2:29 PM


  • Did some more digging and I found my answer. My primary issue was that I didn't have the using System.Reflection on my class to see the extension for typeof.

    using System.Reflection;
    var asm = typeof(KioskConnectService).GetTypeInfo().Assembly;
    var version = asm.GetName().Version;


    • Marked as answer by Mark_E_R Tuesday, May 27, 2014 2:47 PM
    Tuesday, May 27, 2014 2:47 PM