web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Custom DLL on D365FO

(0) ShareShare
ReportReport
Posted on by 4,131

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,

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    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.

  • Yuji Profile Picture
    4,131 on at

    Thanks Nikolaos, to add the DLL to the resource in AOT, is it just for version control purpose?

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    No, you need to add it to Resources in AOT to be able to use it in your code.

  • Yuji Profile Picture
    4,131 on at

    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?

    Thanks,

  • Verified answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Exactly this. And I meant Reference, not Resource, sorry for the confusion.

  • Yuji Profile Picture
    4,131 on at

    Thank you very much Nikolaos!

  • Hugo Alves Profile Picture
    129 on at

    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 errors
    Any approach to reference Model\Bin\DLL with their Relative Path instead?

    Thank you in advance.

  • Martin Dráb Profile Picture
    237,880 Most Valuable Professional on at

    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.

  • Hugo Alves Profile Picture
    129 on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans