In Microsoft Visual Studio, when we tried building a new project, we got this error message:
“The type or namespace name ‘ManagementScope’ could not be found (are you missing a using directive or an assembly reference?)”
The System.Management and System.Management.Instrumentation components were not included as part of the project.
- Click on the menu items (Project \ Add Reference)
- In the “Add Reference” window, access the “.NET” tab
- Select the “System.Management” and “System.Management.Instrumentation” entries
- Problem with namespace error