1.UWP app
Windows-universal-samples-master\Windows-universal-samples-master\Samples\BluetoothAdvertisement例程
2.Desktop app
I.csproj设置
追加:<TargetPlatformVersion>8.1</TargetPlatformVersion>
II.参照追加:
Window
Windows.Management.Deployment
C:\Program Files\Windows Kits\10\References\Windows.Foundation.UniversalApiContract\2.0.0.0\Windows.Foundation.UniversalApiContract.winmd
%ProgramFiles(x86)%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\Facades\System.Runtime.dll