-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unable to get cpuid by ManagementObjectSearcher #29776
Comments
I assume it is |
Yeah i will take a look |
i tried it with the master branch as well core3.0 preview, i am not able to repro the bug. can you give more context on the failure or about the machine where you are running this code ? |
It was throwed when new a ManagementObjectSearcher. The StackTrace : And Its the printing the processor id as BFEBFBFF000506E3 in a core 2.1 console app. I guess it's related to calling unmanaged DLL. |
@Anipik any update? |
This is known issue with .NET Core 3.0 and old version of System.Management package. For .NET Core 3.0, you need to reference latest preview version 4.6.0-preview5.19224.8 of https://www.nuget.org/packages/System.Management/ to workaround it. |
I wan't get cpuid in a console app with core3.0 preview with
And exception throwed:Cannot marshal 'parameter dotnet/corefx#3': Cannot marshal a string by-value with the [Out] attribute.
The text was updated successfully, but these errors were encountered: