I'm trying to implement the code in the question: Desktop Shortcut in Desktop Bridge App. Where do we get the AppUserModelId
I want to get the Aumid for my app by given code in the IAPWrapper based DLL project in Visual Studio 2015:
string aumid = (await Package.Current.GetAppListEntriesAsync()).First().AppUserModelId;
But I get the build error that "'AppListEntry' does not contain a definition for 'AppUserModelId' and no extension method 'AppUserModelId'". How do I update my UWP libraries for Visual Studio 2015 in order to solve this problem?
The AppUserModelId
property was added in version 16299 of the SDK.
It requires Windows 10 version 1709 or later and is only officially supported on Visual Studio 2017 and later so you should upgrade.