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, ...
Answered

Calling a c# library from d365fo finance & get a reference error during build

(1) ShareShare
ReportReport
Posted on by 14
https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-tools/write-business-logic
I'm following this post step-by-step to call a c# library from my d365fo finance code.
I'm getting this reference error:
I checked 'add reference' in my x++ project, there's no matching .net reference of this one.
Has anyone seen an error like this before?
I have the same question (0)
  • Suggested answer
    Waed Ayyad Profile Picture
    8,972 Super User 2025 Season 2 on at
    Calling a c# library from d365fo finance & get a reference error during build
    Hi @Zeyu Hu,
     
    Did you add using Your reference library in your D365 FO code?
     
    Regards,
    Waed Ayyad.
     
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
     
  • Verified answer
    ZH-29041953-0 Profile Picture
    14 on at
    Calling a c# library from d365fo finance & get a reference error during build
    It turns out I was using WPF platform c# library, hence the error. Using .Net platform should solve the issue

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 796

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 530 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans