web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Build pipeline issue with Renci.SshNet.SftpClient in D365 FinOps

(1) ShareShare
ReportReport
Posted on by 128
Hi, 
 
I have used Renci.SshNet.SftpClient for one of the customizations. There is no build errors and the modification works as well. But when runs the build pipeline it throws the below error.
 
 
Here is part of the code.
 
Can anyone help me to figure this out?
 
Regards,
Gihan
 
I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,805 Most Valuable Professional on at
    I'm assuming that Renci.SshNet isn't included in the standard F&O installation, right?
    Then you must install the assembly before you can build code that depends on it. If you can compile it on a dev box, it suggests that you've put the assembly there, but you don't have it done for your pipeline.
     
    The usual approach is having the assembly in source control, therefore it's obtained together with your source code. Another approach way is using a NuGet package (or something similar). And the last one, if you have your own build server, is pre-installing the assembly there (but I wouldn't do that; it doesn't work well with several versions).
  • Anton Venter Profile Picture
    20,345 Super User 2025 Season 2 on at
    In addition to what Martin wrote, you basically have to add the all third party binary DLL files to source control (bin folder) so that they are part of the deployment package. When the solution is compiled, the compiler requires those files.
     
    Why are you using a third party tool? Have you tried to upload files using just vanilla .NET?

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans