我一直在尝试为我的代码使用WMI,我不能使用System.Management类,因为它们不在那里。我已经在3.5和4网上尝试过了。什么都没有 我还没有找到任何解决方案的问题,并想知道你是否曾经遇到过这个问题?如果是这样,那为什么我只有:C#System.Management只有一个类?
System.Management.Instrumentation
我using
块如下:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Management;
using System.IO;
using System.Security.Permissions;
using Microsoft.Win32;
using System.Collections;
using System.Management.Instrumentation;
信息:
的Visual Studio 2010旗舰版 使用net 3.5 - 净4.
不知道我在这里失踪。
除了Jon Skeet说的之外,请确保您没有使用客户端配置文件。 –