简体   繁体   中英

Windows Foundation in C# console project

I would like to use Windows.Device.Sensor in my console project, but I can't add reference to Windows and Windows.Foundation in this project.

How I can do that ?

就像AVD在此评论中所说的那样,可以在以下位置找到解决方案: http : //www.hanselman.com/blog/HowToCallWinRTAPIsInWindows8FromCDesktopApplicationsWinRTDiagram.aspx

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