Microsoft.EnterpriseManagement.CompositionEngine and Microsoft.EnterpriseManagement.Presentation.Core cannot add to Silverlight Project

StackOverflow https://stackoverflow.com/questions/18006337

  •  04-06-2022
  •  | 
  •  

Question

I am authoring a management pack with custom views using Silverlight / WPF (shared code) and MP authoring console and MP authoring tool in Visual Studio. I am following this tutorial on custom views. Widget for SCOM operation and web console - custom

In Section 4.1: It mentions: Add a reference to Microsoft.EnterpriseManagement.CompositionEngine and Microsoft.EnterpriseManagement.Presentation.Core assemblies. These can typically be found in the Console folder of the Operations Manager installation. Attention: the assemblies from the RTM/CU1 installation will not work! You need to download the sample project files and use the included assemblies.

I cannot add references to the Silverlight project. I get an error message:

assemblies not built against Silverlight runtime

Is there any way to get around this?

I understand that the .net runtime is different than that of Silverlight. Yet, this tutorial shows a working example, so it there a missing step or a different binary. What am I missing?

Was it helpful?

Solution

In Section 4.1: It mentions: Add a reference to Microsoft.EnterpriseManagement.CompositionEngine and Microsoft.EnterpriseManagement.Presentation.Core assemblies. These can typically be found in the Console folder of the Operations Manager installation. Attention: the assemblies from the RTM/CU1 installation will not work! You need to download the sample project files and use the included assemblies.

The important bit is the bit in bold, you need to download the sample project and copy the references from there. Were you doing this?

http://gallery.technet.microsoft.com/Creating-a-Widget-for-104711ac

If you download this zip and go to the following sub directory

\Creating a Widget for Operations Manager Dashboard - Walkthrough %231.zip\Creating a Widget for Operations Manager Dashboard - Walkthrough #1\Section_4\AlertSummarySilverlight\Bin\Debug

You'll see the two assemblies in this folder. Copying them out of the zip into another folder and add a reference to them. This works for me in Silverlight 5.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top