Skip to main content

Notifications

Dynamics 365 general forum

.NET Core with Dynamics SDK , How to Make it Work?

Posted on by 145

Hi,

I've been asked to implement a .NET core API that performs some query, i thought it just was the same as how i did in .net 4.5.2 But in fact i discovered that Microsoft SDK don't work with core. I had a lot of searching of how i can work around this, but no answers. Any one knows how this can be done ?

  • HFK Profile Picture
    HFK on at
    RE: .NET Core with Dynamics SDK , How to Make it Work?

    You'll need to register an application in Azure and create an application user. The steps can be found here: https://crmtipoftheday.com/767/server-to-server-authentication-is-here/

    Once you've got that set up - here is some sample C# (not .NET Core but should be almost the same) that calls the Web API endpoint

    https://github.com/jlattimer/CrmWebApiCSharp/tree/master/CrmWebApiCSharpNoAdal

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: .NET Core with Dynamics SDK , How to Make it Work?

    Hi

    Dynamics 365 SDK does not yet support .NET Core.

    I would recommend you use Web API to query from a .NET Core project

    community.dynamics.com/.../274470

    https://community.dynamics.com/crm/f/117/t/317490

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: .NET Core with Dynamics SDK , How to Make it Work?

    Package Microsoft.CrmSdk.XrmTooling.CoreAssembly 9.0.2.12 supports: net462 (.NETFramework,Version=v4.6.2)

  • Suggested answer
    Priyesh Profile Picture
    Priyesh 7,392 User Group Leader on at
    RE: .NET Core with Dynamics SDK , How to Make it Work?

    Hi Khaled,

    Please check this. If this is what you need - www.nuget.org/.../Microsoft.CrmSdk.XrmTooling.CoreAssembly

    Hope this helps.

  • Khaled Rimawi Profile Picture
    Khaled Rimawi 145 on at
    RE: .NET Core with Dynamics SDK , How to Make it Work?

    Hi , thanks for your answers but "Microsoft.CrmSdk.CoreAssemblies" only has the microsoft.xrm.sdk dll and the microsoft.crm.sdk.proxy dll , the microsoft.xrm.tooling.connector is missing. any idea?

  • Suggested answer
    LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: .NET Core with Dynamics SDK , How to Make it Work?

    Hi partner,
    You could refer to the response of the owner of  "Microsoft.CrmSdk.CoreAssemblies NuGet package".

    Here is also a similar resolved issue about how to use Dynamics SDK in Core applications.

    https://stackoverflow.com/questions/49281756/microsoft-dynamics-365-sdk-core-assemblies-net-core-porting-error

    Hope it helps.

    Best Regards

    Leo

  • Suggested answer
    Priyesh Profile Picture
    Priyesh 7,392 User Group Leader on at
    RE: .NET Core with Dynamics SDK , How to Make it Work?

    Hi Khaled,

    You can use www.nuget.org/.../Microsoft.CrmSdk.CoreAssemblies (Core Assemblies) that work with your C# Application (Console app or Class Library) to interact with Dynamics 365.

    Hope this helps!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans