After installing Dynamics NAV 2018, I want to configure Visual Studio Code with Dynamics NAV to use new Development tool.
Before we start lets verify few things and update accordingly.
You can download VS Code from here:-Click to download Visual Studio Code
Install and Launch the Visual Studio Code.
Now Click View -> Extensions.
Click on … to open the extension menu.
Click on Install from VSIX
You can find VSIX file on the installation medium path:
“ModernDev\program files\Microsoft Dynamics NAV\110\Modern Development Environment”
or in the
“C:\Program Files (x86)\Microsoft Dynamics NAV\110\Modern Development Environment”
This will install AL Language Version 0.12.15355
Once the Extension installation is complete, follow below steps
Press Alt+A, Alt+L to trigger the Go! Command
Enter Project Name and Press Enter
Choose “Your own server”
Once you select the “Your own server” you will see a code like below in the “launch.json” file.
Update the information to look similar to below:-
I have updated my ServerInstance as DynamicsNAV110 (you check your instance name if changed while installing server)
I have updated my Authentication as Windows (I am using Windows authentication update what yours use accordingly)
I have added Port as 8049 (please check and use accordingly you are using the port, if using default 7049 then this step not required)
Now save your File. And Press <CTRL + F5>.
Enter your Credentials.
The server url and the web client url are assumed to be the same. That is not the case. The two settings we talked about above, the server url and the developer port number, are the only settings you need in the launch.json.
When VS Code publishes the extension to the NAV server, the NAV server returns the web client url as a response. This url is then opened in the browser. No setting needed in the launch.json at all.
The NAV server reads that setting from the Web Client Base Url server setting.
Your Extension is published, you can verify as below:
Now you are good to go with developing your Extensions using New Modern Development Tool using AL.
I hope this may have clarified your doubt on how VS Code and the NAV server work together!
I will come with more details as I proceed.
2 thoughts on “Configuring Visual Studio Code to Use Modern Development Environment with Dynamics NAV 2018”
Comments are closed.