Monday, 14 March 2016

Setup and Configuration of Visual Studio

Setup and Configuration of Visual Studio that will make the development experience with AX a little smoother.
1. Organize projects by element type: The first option we want to set is to organize projects by element type.  To do this, we'll go to the Dynamics AX menu and we'll choose options.  In the left navigation pane, under the Dynamics AX group, we want to expand that and choose projects.  The first checkbox says organize projects by element type.  We want to make sure this is checked so that when we create projects and we add elements, they're organized and easier to find.

2. Line numbers & Word wrap: The next setting from the same options is in the text editor group.  So we'll expand this and we'll go to all languages.  We want to make sure that line numbers checkbox is enabled so that in our text and code editors, we can see the line numbers.  This makes it easier for development and debugging and also make sure that Word wrap checkbox is enabled




3. Enable IntelliTrace option: The next setting is in the IntelliTrace group.  So we'll click the root node on the IntelliTrace group and we'll uncheck this enable IntelliTrace option.  We do not want this enabled because it's not supported with X++ debugging and it could cause performance issues.  So we'll uncheck this and choose OK.

4. Best Practice:
a)     Under Dynamics 'AX 7', select the Best Practices node.
b)    Select Microsoft.Dynamics.AX.Framework.BestPracticeFramework.UIRules.
c)     Make sure that Microsoft.Dynamics.AX.Framework.CodeStyleRules is selected.
d)    Select Microsoft.Dynamics.AX.Framework.DataAccessRules.
e)     Select Microsoft.Dynamics.AX.Framework.DataEntityRules.
f)      Make sure that Microsoft.Dynamics.AX.Framework.DeprectatedElementsRules is selected.
g)    Make sure that Microsoft.Dynamics.AX.Framework.MaintabilityRules is selected.
h)    Select Microsoft.Dynamics.AX.Framework.StaticCodeValidationRules.



     Then we'll restart Visual Studio to make sure our changes are taking effect.

No comments:

Post a Comment