Add References :
"C:\Program Files (x86)\Windows Kits\10\UnionMetadata\[version]\Windows.winmd"
and
"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5\System.Runtime.WindowsRuntime.dll"
then
using Windows.Devices.Sensors;
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
l wish to access the Windows Ambient lights sensors on a windows forms app using C# but l cannot find the reference for system device sensors
Add References :
"C:\Program Files (x86)\Windows Kits\10\UnionMetadata\[version]\Windows.winmd"
and
"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5\System.Runtime.WindowsRuntime.dll"
then
using Windows.Devices.Sensors;