Reputation: 225
Am getting the error MT2002: Failed to resolve "System.Diagnostics.TraceSource" reference from "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" while accessing the Renci.SshNet.SftpClient as part of my Xamarin project. How can I resolve this issue?
Thanks, Ravi Kumar
Upvotes: 0
Views: 690
Reputation: 225
We resolved this issue by referring the native ssh library(https://github.com/Lejdborg/NMSSH) for Objective-c and creating a binding project to refer it in Xamarin.iOS code base.
Upvotes: 0
Reputation: 43553
You need to use assemblies that were either:
or
If you use (like above) assemblies that were compiled against the desktop framework (either Mono and MS.NET) then you risk using types/members that are not part of the mobile profile.
Upvotes: 0