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

Community site session details

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

C# DLL not getting recognized inside Dynamics365FO project.

(0) ShareShare
ReportReport
Posted on by 148

I have a project that generated the .dll called BanxicoDll. This project contains no errors and generated the .dll without problems. At the moment of passing the .dll to the D365FO project I can add it and it can be seen inside "References", but at the moment of using it with the "using BanxicoDll;" it gives me the error that it does not recognize it.

Inside the bin folder of the D365FO project I make sure that it is the same file that was generated in the .dll project. I also see that the .dll is inside the bin folder of the model that I am using for this project: K:\AosService\PackagesLocalDirectory\"model name"\bin.

I've also checked that the version of the .dll and the version of the D365FO project are compatible.


I already did a Build, Clean and Rebuild. Also inside the DYNAMICS 365 tab I made a Full Build of the model I am using and I have already made a Full Build of all the models that exist and it still does not recognize it. Also within the properties of the DLL I see that the path is correct, I do not know what else I can do. Thanks in advance.

I have the same question (1)
  • Mariano Gracia Profile Picture
    on at
    RE: C# DLL not getting recognized inside Dynamics365FO project.

    You don't need to use the clause "using BanxicoDll", you can use the objects included in the dll directly in you x++ code, just write a new variable BanxicoDll.Object_built_in_your_dll variable_name;

  • Daniel Mora Profile Picture
    148 on at
    RE: C# DLL not getting recognized inside Dynamics365FO project.

    I still get the same errors on the objects specifying they don't exist on the current project.

  • Martin Dráb Profile Picture
    237,681 Most Valuable Professional on at
    RE: C# DLL not getting recognized inside Dynamics365FO project.

    There may be several reasons. First of all, doesn't you assembly depend on other libraries that aren't available in F&O?

  • Daniel Mora Profile Picture
    148 on at
    RE: C# DLL not getting recognized inside Dynamics365FO project.

    No I didn't need other libraries. I already fixed it in one weird way, I just commented everything inside my Main method and just build it like that and suddenly the .dll got recognized. But I still have other problems that I will probably post it on another thread.

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 683 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 398 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans