Cannot Build Project due to missing reference


I am a beginner to development in AX. So I apologize if this is something I should know. I wanted to create an entity to extract some data from AX. I created a solution and project and then added an entity using the Wizard. I wanted to start simple so I added the InvenTable and EcoResProduct.

When I build the project I get the following error:

Error A reference to ‘Dynamics.AX.Ledger, Version=, Culture=neutral, PublicKeyToken=null’ is required to compile this module.

Now I did some digging and see that I could import some of the references under C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions. Most of the references referred to in the warnings are there, however the Dynamics.AX.Ledger, from the error, is not.

Did i miss installing some library?

Thanks in Advance

Which version, this is AX 7 or AX 2012?

AX 7

Hi Michael,

You asked the same question on the Dynamics Community. The answer was provided here:…/211352

Yes. And the answer you provided was excellent. Thanks Again.