简体   繁体   中英

Unable to find Windows.ApplicationModel

Hi I am trying to use the Windows.ApplicationModel as in this example https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/Package

However I am unable to import the dll.

using Windows.ApplicationModel; 

results in an error although I am using .NET Version where it should exist. Also I cannot find it when I try to add the reference. Any Ideas?

I need it to get some packe Informations about Programs that run in the ApplicationFrameHost.

From what I can tell, you need the Windows SDK 17134 version that comes with the UWP development package in the installer. Then you can use that namespace. Google also led me to this link which might help: https://blogs.windows.com/buildingapps/2017/01/25/calling-windows-10-apis-desktop-application/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM