Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

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

(1) ShareShare
ReportReport
Posted on by 31
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
 
  • Anton Venter Profile Picture
    Anton Venter 18,788 Super User 2024 Season 2 on at
    Build pipeline issue with Renci.SshNet.SftpClient
    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?
  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 230,503 Most Valuable Professional on at
    Build pipeline issue with Renci.SshNet.SftpClient
    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).

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!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,503 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans