No matter which framework version I use (tried with 3.5, 4 and 4.5).
I always get a message which says 'SSH.NET' already has a defined dependency on 'SshNet.Security.Cryptography'. But if I try to install 'SshNet.Security.Cryptography', I get another message which says it already has a defined dependency for 'System.IO', and so on...
I've tried through the nuget packet manager and the nuget command line as well.
Any clue on what's happening? Regards
according to https://github.com/sshnet/SSH.NET/issues/82
Seems like I can just download the NuGet package directly from https://www.nuget.org/packages/SSH.NET/ by clicking on "Download" (of course).
Then, extract the package and pick the dll I need according to the .NET framework version I'm using.
Thanks to everyone! :)
我在VS 2013中遇到了类似的问题。我将NuGet Package Manager升级到版本2.12 ,然后能够安装SSH.Net版本2016.1.0。
I get the same issue in Visual Studio Ultimate 2012 even though I have installed the latest update and upgrade the NuGet Package Manager to latest version 2.8.60318.667 in Visual Studio 2012. Then I try install this package in Visual Studio 2013 where the NuGet Package Manager version is 2.8.60610.756. The Package of SSH.NET installed successful.
So I'm afraid that there has some issue between current version of SSH.NET package and NuGet Package Manager version 2.8.60318.667. But this problem has been resolved in Visual Studio 2013, I suggest you upgrade your Visual Studio to higher version.
Another way for your issue is that you could install previous version of SSH.NET package in Visual Studio 2012. I have checked the SSH.NET 2016.0.0-beta2 version , it could install successful in Visual Studio 2012.
I have found the solution for this.
First Install NuGet Package Manager in Visual Studio
Package Manager installation for Visual Studio 2010 and earlier
Then install SHH.NET using NuGet Package Manager by doing the following:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.