How can I get the current AppInfo of the running UWP application? I could not find any accessible constructor or static function to get this information.
Make sure that your device is updated to Windows10 Creators Update version.
Firstly, you should add Capability appDiagnostics to Package.appxmanifest. Directly to modify the code of the file.
Then in the main code, get current package by matching the PackageFamilyName.
var list = await AppDiagnosticInfo.RequestInfoAsync();
var currentPackage = list.Where(o => o.AppInfo.PackageFamilyName == Package.Current.Id.FamilyName).FirstOrDefault();
if (currentPackage != null)
{
AppInfo currentAppInfo = currentPackage.AppInfo;
}