Cannot Build Microsoft System Center 2012 Code Samples

When i try to build the DcmAssignBaseline code sample that comes with the Microsoft System Center 2012, I get: "Error 5 The type or namespace name 'ConfigurationManagement' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)" - and several other errors. 

The referenced error is tied to the line: using Microsoft.ConfigurationManagement.ManagementProvider;

I tried to add the reference (Solution Explorer/References/Right click/Add Reference), but there is no "Microsoft.ConfigurationManagement" reference available to add.

Any help would be appreciated.

July 23rd, 2013 11:01am

Ok, solved the problem (I could delete this, but possibly someone else might have the same issue).

My Microsoft Configuration Manager was on a remote machine.  Had to navigate to that device and then to:  C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin.  The two needed DLLs were there.  (I did have to copy them to my development area) then:

Solution Explorer/DcmAssignBaseline/References/
Right click: Add Reference

Added: AdminUI.WqlQueryEngine.dll (and) Microsoft.ConfigurationManagement.ManagementProvider.dll

Free Windows Admin Tool Kit Click here and download it now
July 23rd, 2013 2:10pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics