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

Announcements

News and Announcements icon
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 148
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
    240,288 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
    21,078 Super User 2026 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 284 Super User 2026 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 258 Most Valuable Professional

#3
Anton Venter Profile Picture

Anton Venter 228 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans