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)

Question on AXModel files

(0) ShareShare
ReportReport
Posted on by 575

I am coming from a .NET background where the code is distributed through assemblies which contain code that is interpreted by .NET CLR. Now I am doing some work on Dynamics AX 2012. I see that axmodel file is the way to distribute solution to customers.  I have some questions regarding axmodel files. Can somebody please clarify?

1) What will be the contents of axmodel files? code that is interpreted (just like .NET assembly) or X++ source code itself?

2) How can I distribute my custom code or solution to customers with only interpretable code, just like we do in .NET assemblies?My intention is not ship any source code to customers.

 

Thanks in advance.

*This post is locked for comments

  • Verified answer
    Martin Dráb Profile Picture
    241,515 Most Valuable Professional on at

    .axmodel files contain exported data from AX Model Store database. Installation of a model therefore means just adding new data (code, metadata) to the database and you have to compile X++, generate IL and synchronize AX database before the application can be used.

    AX does not use any binary format for X++ - the code is always there and if customers has access to AOT, they can read the code. On the other hand, to decompile .NET assemblies is a piece of cake too.

  • Suggested answer
    Joris dG Profile Picture
    17,782 on at

    You can basically distribute .NET assemblies and reference them in the AOT. Of course you need to call them, too. So at least the reference and the call will have to distributed as an AxModel file.

    As Martin said, the AxModel is all metadata, so yes source code as well as other AOT artifacts. But no compiled code.

  • Dick Wenning Profile Picture
    8,705 Moderator on at

    Your visual studio project gets embedded in the model. when the model is deployed your visual studio project gets exctacted at compile time. look at the server or client bin map you can see it,

    X++ code is transvert to code that is stored on the aos. when an AOS restarts this code gets flushed to the Server\bin map and you have your X++ CIL code

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Prashant Singh Profile Picture

Prashant Singh 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans