Monday, March 6, 2023

How to add a DLL file as a reference to the D365 project.

 How to add a DLL file as a reference to the D365 project.


1. Open visual studio and create a project using the class library.

 2. Give the project name and click next.

3. Just I am returning the message. You can add your code to your class based on your requirement.


4. After ReBuild the solution DLL file will be created in the below folder.

5. That DLL file we need to copy to our bin folder.

    AosService\PackagesLocalDirectory\MyModel\bin.


6. Create a project for d365FO. Right-click on references and add your DLL file.



6. I have created a job and called the DLL file.





To check in the DLL please follow the below process.

1. Open the source controller and navigate to the metadata node. Right-click on your model, and choose the '+ Add items to folder' option.



2. Choose the 'bin' folder and click 'Next.'

 


3. In the 'Excluded items,' select your DLL. Then, click 'Finish.'

4. This will add your DLL to the bin folder. During check-in, ensure to include it from the undo pending changes.




Keep daxing!!


1 comment: