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.
Thanks a lot for this post! :)
ReplyDeleteCould 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 :)
Thanks:)
ReplyDeleteYes, 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.
Thanks
ReplyDeleteGood post!
ReplyDeleteQuestion. From AOT Visual Studio Projects. How can i add an existing C Sharp Project to my Solution?