Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / Calling a c# library f...
Finance forum
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 5,102 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
     

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,186 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 227,996 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans