Invoking Microsoft.EnterpriseManagement.Core through .net core application

Yasser Sobhdel 41 Reputation points
2023-05-30T08:44:47.6066667+00:00

Hi

Can we Invoke Microsoft.EnterpriseManagement.Core using . net Core application to

create an EnterpriseManagementGroup object (connect to framework)?

Has any one managed to do so?

I am currently using .net applications to manage SDK calls. I want to migrate the codes to .net core, but I could not find the .net core version.

Thanks in advance

System Center Orchestrator
System Center Orchestrator
A family of System Center products that provide an automation platform for orchestrating and integrating both Microsoft and non-Microsoft IT tools.
230 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,918 questions
Service Manager
Service Manager
A family of System Center products for managing incidents and problems.
237 questions
Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,493 questions
Microsoft System Center
Microsoft System Center
A suite of Microsoft systems management products that offer solutions for managing datacenter resources, private clouds, and client devices.
1,012 questions
0 comments No comments
{count} votes

Accepted answer
  1. XinGuo-MSFT 18,771 Reputation points
    2023-05-31T02:09:44.5766667+00:00

    Hi,

    Yes, you can invoke Microsoft.EnterpriseManagement.Core using .NET Core application to create an EnterpriseManagementGroup object and connect to the framework. The latest version of the Microsoft.EnterpriseManagement.Core package is compatible with .NET Standard 2.0 and can be used in .NET Core. To use it, you will need to install the package using NuGet Package Manager or Package Manager Console.

    Here are the steps to use the package in your .NET Core application:

    1. Open your .NET Core project in Visual Studio or Visual Studio Code.
    2. Install the Microsoft.EnterpriseManagement.Core package using package manager or package manager console. You can do this by running the following command in the Package Manager Console:
    
    3. In your code, add the following using statement to import the necessary namespace.  
    ```using Microsoft.EnterpriseManagement;```
    
    4. You can now create an instance of the **EnterpriseManagementGroup** class and connect to the framework using the constructor method as follows.  
    ```EnterpriseManagementGroup emg = new EnterpriseManagementGroup("localhost");```
    
    Note: Replace "localhost" with the name of the management server or management server pool FQDN.
    
    References:
    - NuGet Package: https://www.nuget.org/packages/Microsoft.EnterpriseManagement.Core
    - Microsoft.EnterpriseManagement.Core API reference: https://docs.microsoft.com/en-us/dotnet/api/microsoft.enterprisemanagement?view=scsm-2019
    

1 additional answer

Sort by: Most helpful
  1. D Dolski 5 Reputation points
    2023-11-29T22:05:33.2233333+00:00

    This "3rd-party" Nuget and its DLLs are questionable at best.

    Nuget is created without good practice - no list of supported frameworks, no dependencies, etc.

    Stay away.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.