简体   繁体   中英

Can't install SSH.NET on Visual Studio 2012 Ultimate

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

  1. In Visual Studio, click Tools > Extension and Updates.
  2. Navigate to Online, search for "NuGet Package Manager for Visual Studio," and click Download.
  3. In the Installer dialog box, click Install.
  4. When installation is complete, restart Visual Studio.

Then install SHH.NET using NuGet Package Manager by doing the following:

  1. In Solution Explorer, right-click References (or Bin in a Website project), or the desired project, and select Manage NuGet Packages...
  2. Search for SHH.NET
  3. Then click Install

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM