web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

DLL development for custom API

(1) ShareShare
ReportReport
Posted on by 552
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
I have the same question (0)
  • Suggested answer
    Layan Jwei Profile Picture
    8,097 Super User 2025 Season 2 on at
    Hi Ken,
     
    It's inside the model.
     
    Please check this article:
     
    Thanks,
    Layan Jweihan 
  • Suggested answer
    Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at
    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
    Komi Siabi Profile Picture
    13,093 Most Valuable Professional on at
    Hello Ken,
     
    Below is a sample step by step of Martin's suggestion.
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans