问题
Is there a way to figure out the PackageFamilyName (as appearing in the manifest) in runtime? I looked in /Program Files/WindowsApps and could not find the relevant string there. Could not find any API that would let me do this...
Any other ideas are welcome.
回答1:
I think what you're looking for is PackageId.FamilyName which is available through the Package.Current.Id.FamilyName
property.
Source: MSDN Forums
来源:https://stackoverflow.com/questions/15333375/is-there-a-way-to-find-the-packagefamilyname-at-runtime