使用wpf获取硬件id

使用wpf获取硬件id,wpf,Wpf,尝试使用此处和此处发布的解决方案,但wpf似乎没有ManagementObjectCollection。我已经补充了 using System.Management; using System.Management.Instrumentation; 但在我的代码中。有没有办法使用wpf获取cpu id和其他信息?WTF WPF应该能够使用WMI 您是否尝试手动添加对System.Management(WMI)的引用?嗯,谢谢。。我不知道之前我们必须手动添加对System.Management的

尝试使用此处和此处发布的解决方案,但wpf似乎没有ManagementObjectCollection。我已经补充了

using System.Management;
using System.Management.Instrumentation;
但在我的代码中。有没有办法使用wpf获取cpu id和其他信息?

WTF

WPF应该能够使用WMI


您是否尝试手动添加对System.Management(WMI)的引用?

嗯,谢谢。。我不知道之前我们必须手动添加对System.Management的引用