Skip to main content

Notifications

Announcements

No record found.

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,451 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans