[X++] Deploy C# Project as assembly to AX

When using .NET Dlls in Dynamics AX 2012 the normal way to include them is to add the DLL files as reference to the References node in the AOT.

But how to deploy a .NET assembly developed by yourself?
The best way to develop a .NET assembly for AX is to add the ClassLibrary project to the AOT.
This has the advantage to be able to add it to the version control but also to be able to deploy it easily.

Add projet to AOT

Just open the project in Visual Studio (if not already open) and set the properties of the project for deployment destinations:

Project properties

Then right-click the project itself and deploy.

Deploy project

The assembly then should be available on the selected targets!

Important: Restart your client after the deployment if the AX client was open!