Tuesday, May 10, 2011

Visual studio tools for AX 2012

Now it became really easy to develop managed components for AX.
In order to do that you’ll need Visual Studio 2010 and Visual Studio Tools for AX 2012.

The first tool to mention is, of course, Application Explorer. It contains elements from AOT (and it actually looks pretty much like AOT) and allows to perform some operations with them. For example, it is possible to open projects or SSRS reports stored in AOT in the same visual studio instance just by clicking edit on project node in application explorer.

Application Explorer also allows to generate proxies for AX tables, classes, enums and add them to the project. Just by dragging them from application explorer to solution explorer.

It is also very important to mention that VS projects can now be stored in the AOT. That is convenient since they can be included into models, as well as all other AOT objects and thus packaged\deployed easily.

Project can be added to the AOT from the Visual Studio directly.


  1. Thanks a lot for this post! :)

    Could You please clarify how it is possible to create new Dynamics C# project in VS? ("ClassLibrary1" in Your example). Is there should be such template in VS?

    Also, because I can't try it by myself, please say is it possible to operate by Ax objects in VS? And if Yes - how? I see in Your example code line "InventTable.txtNotExist()" and this is very interesting :)

    Thanks! Your blog is most informative about AX 2012 I think :)

  2. Thanks:)

    Yes, there are some new AX-specific project templates, for example, for reports or web modules. However other standard project types can be added to the AOT as well. For example, on the last screenshot I am adding C# class library to the AOT.

    AX objects can be accessed. You can see in the ClassLibrary1 project there are nodes for InventTable, InventType and ABS enum. Those are proxy classes that can communicate with AX throught the MIL framework (Business Connector replacements). Those proxies can be generated by dragging objects from Application Explorer to the project.

  3. Good post!

    Question. From AOT Visual Studio Projects. How can i add an existing C Sharp Project to my Solution?

  4. I have installed Visual Studio 2012 but its Application Explorer is not shown under the View menu. It does show under Visual Studio 2010.

    does it means that I need to uninstall Visual Tools and install once again so that both Visual Studio 2010 and 2012 Application Explorer can be viewed from menu View

  5. What i don't understood is in truth how you're now not actually much more smartly-appreciated than you might be right now.
    You're so intelligent. You already know therefore considerably in the case of this matter, produced me for my part imagine it from numerous numerous angles. Its like women and men aren't fascinated unless
    it is something to do with Woman gaga! Your own stuffs great.

    All the time care for it up!

    Check out my web site ... frankrijk vakantiehuizen []

  6. can visual studio 2010 integrated with AX2009 ???

  7. which Visual Studio 2010 version should be appropriate with AX2012 R2? ...
    coz i have install Visual Studio 2012 Express on my machine, but when i get install Visual Studio Tools on AX2012, my VS2012express not detected by AX2012 prerequisites...

    1. I'm afraid of that Ax2012 R2 works only with VS2010.

  8. In X++ it is possible to dynamically create an AX class, compile it and then execute its methods.

    In .NET code you can dynamically create C# code, compile it and generate a DLL (either in-memory or on disk) and then use it.

    I wonder if it will still be possible in AX2012 (and coming versions!) to have an AX class that dynamically creates another AX class at runtime with access AOT objects? Or will the shift to Visual Studio prohibit this eventually?

  9. Please any one can give me a download link to this tool for Dynamics ax 2012 R2

    1. I think you can find the Visual Studio Tools for AX 2012 on the Ax2012 installer as the first screenshot shows.

  10. Hi :) It is a big pleasure to read your blog. Thank you so much for sharing this article about Microsoft Dynamics AX posting profile inventory transactions in Modules.