hi, i want to use system.management.dll, i import it to asset folder in my project(my project is for windows platform)
and write this script :
import System.Management;
import Microsoft.Win32;
function Start()
{
var result:String="";
var mc:ManagementClass = new ManagementClass("Win32_BIOS");
var moc:ManagementObjectCollection = mc.GetInstances();
for(var mo:ManagementObject in moc)
{
//Only get the first one
if (result == "")
{
result = mo["IdentificationCode"].ToString();
}
}
print(result);
}
but unity show this error:
NotImplementedException: The requested feature is not implemented. System.Management.ManagementObjectSearcher…ctor (System.String queryString) (wrapper remoting-invoke-with-check) System.Management.ManagementObjectSearcher:.ctor (string)
i change .NET 2.0 subset to .NET 2.0