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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to call Managed Code in x++

(0) ShareShare
ReportReport
Posted on by

Hi All,

I have created a project in Visual Studio  and also have added it to the AOT .

Now how can I call the managed in x++ ?

DO I need to add any assemblies under Reference Node in AOT ?

Regards,

Mania

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mariano Gracia Profile Picture
    on at

    No, just use the namespace of your c# class and the intellisense will do the rest

  • Verified answer
    Munib Profile Picture
    2,500 on at

    No really. If you have added to the AOT, it should just work in x++.

    If you are using version control or importing the xpo. I have noticed at times it drops the dll. You should compile and see the dll.

    Adding it as a reference in the AOT will work but it is not necessary.

  • Community Member Profile Picture
    on at

    Hi Munib,

    As you said I have added the reference to the AOT. Now I can see the class library under the Reference Node of the AOT. Actually it's a console app. Now please let me know how can I pass parameters to the Class library

  • Community Member Profile Picture
    on at

    Thanks Munib. It works now.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
GL-01081504-0 Profile Picture

GL-01081504-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans