Not able to use System.Management.dll in Dot Net Core

后端 未结 4 1338
孤街浪徒
孤街浪徒 2021-02-18 13:31

How should I gather Hardware Info if System.Management.dll is not compatible with Dot Net Core.

How do I get the Machine info like Processo

4条回答
  •  执笔经年
    2021-02-18 14:24

    You need to install Microsoft.Windows.Compatibility in your .Net core project to be able to reference System.Management.dll.

提交回复
热议问题