Cannot Install SSH.NET on Visual Studio 2012 Ultimate

Regardless of which version of the framework I use (I tried with 3.5, 4 and 4.5).

I always get a message saying that "SSH.NET" already has a certain dependency on "SshNet.Security.Cryptography". But if I try to install "SshNet.Security.Cryptography", I get another message saying that it already has a certain dependency for "System.IO", etc ...

I tried through the nuget package manager and the nuget command line.

Any clue on what's going on? Relationship

+7
visual-studio visual-studio-2012 nuget
source share
4 answers

according to https://github.com/sshnet/SSH.NET/issues/82

It looks 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 select the dll I need according to the version of the .NET Framework I am using.

Thanks everyone! :)

+5
source share

I get the same problem in Visual Studio Ultimate 2012, although I installed the latest update and updated the NuGet Package Manager to the latest version 2.8.60318.667 in Visual Studio 2012. Then I will try to install this package in Visual Studio 2013, where the NuGet Package Manager version is 2.8 .60610.756. The SSH.NET package has been installed successfully.

So, I'm afraid there is a problem between the current version of the SSH.NET package and the NuGet package manager version 2.8.60318.667. But this problem was solved in Visual Studio 2013, I suggest you upgrade Visual Studio to a higher version.

Another way for your problem is to install the previous version of the SSH.NET package in Visual Studio 2012. I checked SSH.NET 2016.0.0-beta2 , it can install successful operation in Visual Studio 2012.

0
source share

I found a solution for this.

Install NuGet Package Manager First in Visual Studio

Install Package Manager for Visual Studio 2010 and Earlier Versions

  • In Visual Studio, select Tools> Extensions and Updates.
  • Go to the Internet, find "NuGet Package Manager for Visual Studio" and click "Download."
  • In the Setup dialog box, click Install.
  • When installation is complete, restart Visual Studio.

Then install SHH.NET using the NuGet package manager by following these steps:

  • In Solution Explorer, right-click the link (or Bin in the website project) or the desired project and select "Manage NuGet Packages ..."
  • Search SHH.NET
  • Then click Install
0
source share

I had a similar problem in VS 2013. I updated the NuGet package manager to version 2.12 , and then was able to install the version of SSH.Net 2016.1.0.

0
source share

All Articles