the type or namespace name ‘managementclass’ could not be found

尝试着读取硬盘序列号等数据,结果发现managementclass不能有效引用,查了一下,需要手动引用。

1,对工程文件右键单击:

the type or namespace name 'managementclass' could not be found

2,然后添加System.Management:

the type or namespace name 'managementclass' could not be found

 

打赏
原文链接:,转发请注明来源!
STM

发表评论