Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

DLL development for custom API

Posted on by 417
Hi guys,
 
I'm new to API development, especially with DLL creation involved. I wan to ask, where exactly the place we should put the DLL that we create later ? Is it in PackageLocalDirectory//bin OR PackageLocalDirectory//<our model>//bin ?
 
Thanks
  • Verified answer
    Komi Siabi Profile Picture
    Komi Siabi 12,666 Most Valuable Professional on at
    DLL development for custom API
    Hello Ken,
     
    Below is a sample step by step of Martin's suggestion.
     
  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 229,336 Most Valuable Professional on at
    DLL development for custom API
    The approach I recommend is not dealing with the DLL file manually. Instead, create a Visual Studio solution that included both the .NET (typically C#) project where you defined the class library, and X++ project using the library. Build the .NET library and then add a project reference from the X++ project to the .NET project. The DLL is built and put to the right place automatically, you just need to add the AOT reference node and the DLL file to source control.
     
    Note that this approach also makes debugging easier, because you can step from X++ code directly to the .NET code in debugger.
  • Suggested answer
    Layan Jwei Profile Picture
    Layan Jwei 7,243 Super User 2024 Season 2 on at
    DLL development for custom API
    Hi Ken,
     
    It's inside the model.
     
    Please check this article:
     
    Thanks,
    Layan Jweihan 

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 Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

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... 290,902 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,336 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans