Monday, 20 June 2016

Setup and Configuration of Visual Studio - AX7


The first time you use using Visual Studio to develop with AX, you will need to complete some basic configuration.

The first thing to note is it can be hosted locally or in the cloud using Microsoft Azure. Secondly, a minimum of 16 gigabytes of RAM is recommended along with two CPU cores for a smooth development environment.  However, the more RAM and CPU cores you have will translate into faster compile times. 

There are a few settings we want to configure in Microsoft Visual Studio that will make the development experience with AX a little smoother.

Configure Visual Studio


1.  Open the Visual Studio.

a.       Right-click the Visual Studio 2015 icon on the desktop.
b.       Click Run as administrator.

2.  Set  the Text Editor Options.

a.       Click Dynamics 'AX 7'.
b.       Click Options..
c.       Expand the Text Editor node.
d.       Click the All Languages node.
e.       Under Settings, select the Word wrap check box.
f.       Select the Line numbers check box.
g.       Collapse the Text Editor node.

3. Set  the Best Practice Options.

a.       Under Dynamics 'AX 7', select the Best Practices node.
b.       Select Microsoft.Dynamics.AX.Framework.BestPracticeFramework.UIRules.
c.       Make sure that ,
     i.   Microsoft.Dynamics.AX.Framework.CodeStyleRules 
     ii.  Microsoft.Dynamics.AX.Framework.DataAccessRules.
     iii. Microsoft.Dynamics.AX.Framework.DataEntityRules.
     iv. Microsoft.Dynamics.AX.Framework.DeprectatedElementsRules.
     v.  Microsoft.Dynamics.AX.Framework.MaintabilityRules.
    vi.  Microsoft.Dynamics.AX.Framework.StaticCodeValidationRules.
     are selected.

4. Set Projects Options.

a.       Click the Projects node.
b.       Select Organize projects by element type.
c.       Click OK.