Tuesday 2 October 2018

Compile X++ code using AXBuild or Command Prompt

Today, I will be discussing about how to compile your X++ code using cmd prompt. The AXBuild.exe will be doing compile for all X++ code, p-code and you will see its much faster than traditional compile method using MorphX client menu. This exe runs on AOS (Application Object Server) tier at a  cmd.exe command prompt.
The utility program only involves compilation of p-code and it won't go further for compilation of .NET framework  CIL.

Note : You should stop your AOS service before you start compilation.

Step 1) Open command prompt as a administrator. Navigate it to this path by using command.

cd C:\Program Files\Microsoft Dynamics AX\60\Server\"Your AOS name"\bin

It will navigate to given path.





Step 2) Input AXbuild command, execute it and wait till it completes.

Command : axbuild.exe  xppcompileall  /workers=6 /aos=01 /altbin="C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin"

  • Workers = 6 : It tells about number of parallel or concurrent AOS workers for the compilation adn build processes.  In my case they are 6.
  • AOS = 1 : Instance server number
  • Altbin =  It tells about the path to the folder on the local AOS host computer that has the DLL files which are installed with an AX32.exe client .
After complete execute log file will be generated in html and its path will be given on cmd.


















Tip : For finding your AOS  instance number search in windows : Microsoft Dynamics AX Server Configuration and go to Application Object Server tab and check AOS instance field. Highlighted part is the value of AOS instance number.










No comments:

Post a Comment

Note: only a member of this blog may post a comment.

Custom Business events Part 3 - (Activate custom business event) in D365 F&O

 In this blog we will discuss about the steps to activate a custom business in D365 F&O. As we know that business event catalog does not...