Notifications
Announcements
No record found.
Hi,
Since standard D365FO x++ does not support encrypt/hash feature (e.g. Base64), we need to develop some custom feature in C# DLL. I remember I can do that in AX 2012, and deploy those DLLs on Server/bin folder. Is it still possible for this on D365FO, how do we deploy DLLs to the servers? How to include these DLLs in the deployable packages?
Thanks,
Yes, it's possible.
You put that DLL in the Bin folder of your package. Then add it as a Resource in AOT. Then add the Resource and the dll file to source control. Now your build process will include it in the deployable package.
Thanks Nikolaos, to add the DLL to the resource in AOT, is it just for version control purpose?
No, you need to add it to Resources in AOT to be able to use it in your code.
Hi Nikolaos,
I did find an article
community.dynamics.com/.../manage-your-references-to-net-assemblies-dynamics-365-for-operations-vs-projects
Is it similar to this?
Exactly this. And I meant Reference, not Resource, sorry for the confusion.
Thank you very much Nikolaos!
Thank you guys for sharing...
We did exactly this way:- Added DLL to: \OurModel\BIN\<CustomComponent>.dll- Added Reference to: \OurModel\AxReference\<customcomponent>.xml
The problem now is that Reference Path property points out to Absolute FilePath,which causes conflict among developers' branches and Main trunk:
- Developers in personal environment get their AOSPackage at C:- Developers in LCS Cloud Hosted usually points out to K:- Main trunk is also K:
Get Latest, Refresh models, Build, Errors... lots of errorsAny approach to reference Model\Bin\DLL with their Relative Path instead?
Thank you in advance.
What errors are you getting?
I use a different workspace mapping paths then the rest of the team and I've never run into a problem. The bin folder of the packing is one of the probing paths, therefore if the file is there, it should work. The first thing to check is whether the file is in source control and whether the developers were able to download it.
An example I have here at the moment is using a project reference, not a DLL reference. The XML file of the reference doesn't contain any path at all, just Name, AssemblyName, AssemblyDisplayName and Version.
Just as Martin Drab said,despite we see something like absolute path on Properties window of the Reference,its XML file has no path at all. Perfect.
This answer proved the problem was not there, it made us double check and indeed AxReference was not properly added to Source Control, Model\Bin\DLL was.
Now it is working perfectly.
Thank you Martin!
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 611 Most Valuable Professional
André Arnaud de Cal... 529 Super User 2025 Season 2
Sohaib Cheema 285 User Group Leader