Skip to main content

Notifications

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.

  • Daniel Mora Profile Picture
    Daniel Mora 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.

  • Martin Dráb Profile Picture
    Martin Dráb 230,962 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
    Daniel Mora 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.

  • 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;

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,160 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans