Get CPU Usage Error

Trying to get CPU usage via Invoke Code (C#) and getting the following error:

Invoke code: No compiled code to run
error CS0234: The type or namespace name ‘Devices’ does not exist in the namespace ‘Microsoft.VisualBasic’ (are you missing an assembly reference?) At line -3

Calling PerforrmanceCounter and not using Microsoft.VisualBasic.Devices.

What is happening here?

.xaml was corrupted. Created new .xaml and no error.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.