Vanya
Vanya

Reputation: 361

Adding visual studio project to AOT

I have a built a class library in visual studio 2010 which I want to add to my AOT and then use it to build my own service. I added the library to the AOT by right clicking it and pressing Add ClassLibray1 to AOT. I can see the library in the AOT (Visual Studio Project -> C Sharp Projects). But when a add a new class to the AOT and try to use this library, the intellisense does not show it. The dll is present is in the Client->Bin folder. I have tried restarting the AOS and building the dll again. How do I proceed?

Upvotes: 2

Views: 4274

Answers (1)

Yuriy
Yuriy

Reputation: 84

Working with assemblies in AX 2012 has changed comparing to AX 2009. One of the key points is - now there is no need to copy assemblies to client/server "bin" folder, thus (just an assumption) if you copied an assembly manually - delete it from "bin" folder(-s).

Please read

Usually you have to do following steps (to make VS project's class(-s) available in X++ editor):

  • add project from VS to AOT
  • set project properties in VS: "Deploy to client" & "Deploy to server"
  • (optional) restart AX client (if you had it opened, while you were adding VS project to AOT)

Now you can consume your assembly from AX.

Upvotes: 2

Related Questions