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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Using DLL reference in d365FO

(4) ShareShare
ReportReport
Posted on by 372
Hello all.
I created a dll in c# to encrypt data, and i used that dll as a reference in my project in D365FO, and i worked fine.
But when i check in the code so that another team member can continue working on another development machine but he couldn't use the reference in his machine despite it exists on AOT as an element in reference section.
The problem can be solved by telling him to make the reference again, but is there something i missed because i'm afraid  the package is failed when deployed on the UAT
Categories:
I have the same question (0)
  • Suggested answer
    KS-21091001-0 Profile Picture
    4 on at
    On the other development machine, you need to ensure, the DLL is present in the Bin folder of PackagesLocalDirectory  K:\AosService\PackagesLocalDirectory\bin , and the Bin folder of your Model
    K:\AosService\PackagesLocalDirectory\YourModel\bin
     
    You would need to recreate the dll in C# all over again.
  • Verified answer
    Sohaib Cheema Profile Picture
    49,677 Super User 2026 Season 1 on at
    When you have DLL, you must put it in the bin, so that at the compile time the system knows the existing reference. The build becomes dependent upon the DLL.
  • MS-29011540-0 Profile Picture
    372 on at
    @Sohaib Cheema
    Thanks for your reply.
    Do i need to do something if i will deploy on UAT or Production?
  • Verified answer
    Sagar121 Profile Picture
    1,160 Super User 2026 Season 1 on at
    I hope you are creating the package from ADO pipeline only. Just make sure you have checked in the DLL to the correct Bin folder in repo.
  • MS-29011540-0 Profile Picture
    372 on at
    @Sagar121
    UAT and Production are on-premise
    Do I need to do something?
  • Sohaib Cheema Profile Picture
    49,677 Super User 2026 Season 1 on at
    It doe snot matters On-Prem or Cloud, the package is generated in the same way, build is done in the same way.
    Did you read the blog-post, that shows you steps, about how you can add DLL
  • MS-29011540-0 Profile Picture
    372 on at
     @Sohaib Cheema
    Yes, I do read it.
    How can I go to K:\AOSService\PackagesLocalDirectory\[package]\bin\ in cloud UAT or Production environment?
    I mean  If I created a package on a server that i referenced the DLL, would it be embedded inside the package?
  • Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at
    You won't "go" to the folder. The file will be put there by the process installing deployable packages to sandbox and production environments. You just need to make sure that your build pipeline includes the file when creating the deployable package.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 616

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 460 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 331 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans