Blog

Blog

Install and Publish Extension in VS Code

Posted on 18-Oct-2018 by Manish Sharma

Step 1:- Things need to do in Services and Config. file before starting VS code.

Enable Developer Service Endpoint and Enable Loading Application Symbol in the Business Central Administration Serivce instance as shown below

Assign Web client Base URL as mention below.

If you are using local service then mention localhost else mention server IP.

Change “NetFx40_LegacySecurityPolicy enabled” property to false in Server.exe.config file. To change the property follow the below mention path:

C:\Program Files\Microsoft Dynamics 365 Business Central\130\Service\Microsoft.Dynamics.Nav.Server.exe.configOnce all above mention setup has been done restart the service.

Step 2:- Download Visual Studio code.(To download follow the link https://code.visualstudio.com/).

Step 3:- Open Visual Studio , Go to View-Extension

Select Install VSIX to install AL extension.

Select ALLanguage File from path: C:\Program Files (x86)\Microsoft Dynamics 365 Business Central\130\AL Development Environment

Install the AL Language Extension, from extensions marketplace (Seatch for AL).

Once the AL Language is installed, Press Shift+Ctrl+P and select Al:Go option.

Once you Select Al:Go it will create a Project under folder : C:\Users\Documents\Al\Project. Press Enter.

Once the projet is created, select your own Server option

A Launch.json file will be created as mention below

You need to change the properties as mention in below image to use your define port of the service which you created.

Below are the details you need to change,

Sever :- If you are using local service the type local host else type server address or IP

ServerInstance :- This will be the Service instance for Business Central what has been configured.

Authentication:- If using windows then fill windows, if using NAVUSERPASS then use navuserpass.

Port :- This will be you development port that we have configured in the service configuration.

Step 5:- Press Shift+Ctrl+P and select Al:Download Symbols

Once Symbols download press Crtl+F5 to publish the project.

Share


Post a Comment

Your email address will not be published. Required fields are marked (*)

Captcha
can't read? refresh

WhatsApp Now