Let’s start by taking a look at a few important areas of VS Studio in regards of MP Authoring. Remember that is is not a VS training. There is probably a lot more to it than what I will post about, but I will try to focus and what I know and what I learn that helps authoring for SCOM.
First, let’s create a solution, which could have multiple MPs in it (projects). Typically a library MP, a monitoring MP, a Reporting one and a visualization, if you want it very strictly separated. A good general rule for VS: remember naming things before you hit ok. You will see why.
For most of the basic stuff, I’m still using 2007 compatible MPs:
Before hitting OK, make sure you fill the lower section:
Second, MP references. In the old AC, there was a tiny button for that:
Now, I believe it is more explicit:
The important part here is that if you are going to reuse things from other sources, you need to make sure the alias to the references match. You’ll later see that you should also use the #alias directive to make it easier to manage references in snippets.
Note the version of the Library is 6.1.7221.0, meaning, it is a SCOM 2007 reference. Make sure you reference 2007 mp files when adding other references. If you select 2012 compatibility, add references accordingly.
Remember to also set the basic configuration of the project:
and edit the XML:
If you are working to drop the MPs in a network folder like I am, make sure you change the Output Path.
And decide how the deployment goes:
Create a folder for you snippet Templates:
Stay tuned for Part 2, where we will start building classes and discoveries.
Hope this helps!