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.

Connect and upload in azure blob with azure key vault using x++

 Today, I will be sharing details about file upload in azure blob using azure vault that includes pre requisite and code snippet used to it....