Eryux / miband-heartrate

Enable and monitor heartrate with Mi Band 2, 3 or 4 on Windows 10.
MIT License
57 stars 14 forks source link

VisualStudio 2017 can not build it #2

Closed DeveloperKen closed 5 years ago

DeveloperKen commented 5 years ago

My visualstudio 2017 can not build it. The reference "Windows" is marked as unavailable, and namespace "Windows.Devices" is missing. Microsoft Docs shows it is a namespace for UWP applications, not for winforms. How can I get the project work? Should I switch the project to UWP? (But will winform work still?)

Thanks for helping.

DeveloperKen commented 5 years ago

for more information, i ran the visualstudio installer and fixed the software. but it done nothing.

Eryux commented 5 years ago

Do you have Windows SDK installed ? https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk

DeveloperKen commented 5 years ago

Do you have Windows SDK installed ? https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk

Thanks for that. I am installing it. I thought the SDK is included in the VisualStudio Installer in the past...

DeveloperKen commented 5 years ago

The include "Windows" is located at C:\Program Files (x86)\Windows Kits\10\UnionMetadata[YOUR_VERSION_HERE]\Windows.winmd I have fixed the problem. Just for who have the same problem.