Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 728
Flacid_Snake Avatar asked Sep 08 '16 07:09

Flacid_Snake


People also ask

How do I install NuGet packages in Visual Studio 2012?

From Visual Studio, select Tools > NuGet Package Manager > Package Manager Console. After the Package Manager Console pane opens, verify that the Default project drop-down list shows the project in which you want to install the package.

How do I import a NuGet package into Visual Studio?

To find and install a NuGet package with Visual Studio, follow these steps: Load a project in Solution Explorer, and then select Project > Manage NuGet Packages. The NuGet Package Manager window opens. Select the Browse tab to display packages by popularity from the currently selected source (see Package sources).

What is Sshnet?

SSH.NET is a Secure Shell (SSH-2) library for . NET, optimized for parallelism.

How do I download a package in Visual Studio?

Install packages from your feed In Visual Studio, right-click on your project in the Solution Explorer, and then select Manage NuGet Packages.... Select Browse, and then select your feed from the Package source dropdown menu. Use the search bar to look for packages from your feed.


2 Answers

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! :)

like image 139
Flacid_Snake Avatar answered Oct 02 '22 04:10

Flacid_Snake


I had a similar problem in VS 2013. I upgraded the NuGet Package Manager to version 2.12 and was then able to install SSH.Net version 2016.1.0 .

like image 31
Dror Avatar answered Oct 02 '22 04:10

Dror