This project is read-only.

Unable to add Renci.SshNet.dll to GAC in Mono

Aug 1, 2012 at 7:52 PM

Hi,

I'm new to the ssh.net library.  I was able to add the dll to Visual Studio.  My test program worked fine.  However, I'm trying to port ssh.net over to Linux using Mono. 

I get the following error message when attempting to add the assembly to the Global Assembly Cache on Mono:

 

sudo /usr/local/mono.2.10.9/bin/gacutil2 -i Renci.SshNet.dll
Failure adding assembly Renci.SshNet.dll to the cache: Attempt to install an assembly without a strong name

 

I guess the first obvious question is:

Can Ssh.Net run on the Mono platform?

If so, is there another dll I should use instead of the aforementioned dll?  If this is the correct dll, what can I do to add it to Mono's gac. 

Thanks for any help!!!!

Coordinator
Aug 10, 2012 at 3:21 PM

Hi,

 

Well, I personally didn't try to run it on mono yet, but I remember I did some compatibility changes so it could compile and run on mono if someone wishes to.

Based on error you describing it sounds like all you need to do is to sign an assembly with a strong name.

You can do it by downloading source version and adding sn file to it.

 

 

Hope it helps.

 

Thanks,

Oleg