Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

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

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?
  • Verified answer
    Community member Profile Picture
    Community member 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
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 6,301 Super User 2024 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
     

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans