原文地址:http://blog.vinaysingh.in/2011/03/integrate-dll-with-dynamics-ax.html
Dynamics AX provide the feature of common language runtime interoperability(aka CLR interop).This feature manages the classes in assemblies(installed with the .NET framework) which can be called from X++.There can be two ways of installing a DLL which will be referenced in AX-
1)Add the DLL to .NET directory for Microsoft Dynamics AX where a client is installed.
(Path eg.-C:Program FilesMicrosoft Dynamics AX50ClientBin)
2)Add the DLL to the GAC(Global Assembly Cache) where an AOS is installed using following steps-
-Open the command prompt
-Navigate to the folder that contains the DLL.
-Type the command “gacutil /i ClassLibrary.dll”
Note:DLL assembly must be strong named.
After adding the DLL we can reference the same in Dynamics AX.
AOT->References->Browse and add the DLL from its location.
Now we are ready to use the .NET assembly functionality in Dynamics AX.
转载请注明:ww12345678 的部落格 | AX Helper » [转]Integrate the .NET DLL with Microsoft Dynamics AX