Thanks.
Thanks.
This should work fine with the upcoming __2016.0.0__ release.
Support for .NET Core (.NETStandard 1.3) will be available in __beta 3__, and this should work fine in __Xamarin__.
If you want to follow up on this, please open an issue in our new home at GitHub:
https://github.com/sshnet/SSH.NET
Hi drieseng - thanks for taking the time to reply.
Any idea when the beta 3 release might be out?
Thanks
Tim
2016.0.0-beta3 is available now.
Get it [here](https://www.nuget.org/packages/SSH.NET/2016.0.0-beta3)!
Thanks drieseng. I can confirm that SSH.NET beta 3 was successfully installed into my Xamarin project but it seems to have brought a new issue with it and provokes the following error on building the project
Severity Code Description Project File Line
Error Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'System.Security.Cryptography.Primitives, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'System.Security.Cryptography.Primitives.dll'
at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(ICollection`1 assemblies, AssemblyDefinition assembly, Boolean topLevel)
at Xamarin.Android.Tasks.ResolveAssemblies.Execute() TaskyAndroid
Any suggestions pls?
Thanks
Tim
Sorry, meant to add, this seems to have been introduced with the SshNet.Security.Cryptography v1.2.0 which is installed as part of SSH.NET beta 3. Uninstalling SshNet.Security.Cryptography v1.2.0 removes the error and the project builds OK
Which target framework version of __SSH.NET__ is Xamarin picking up ?
The __SshNet.Security.Cryptography__ package has a dependency on the __System.Security.Cryptography.Primitives__ package for the __.NETStandard1.3__ and __UAP10.0__ TFMs.
If Xamarin is using one of these target framework (I would expect it to use __.NETStandard1.3__), then it should also find the __System.Security.Cryptography.Primitives__ assembly.
You should not (have to) remove the __SshNet.Security.Cryptography__ package as **SSH.NET** relies on it for the __RIPEMD160__ HMAC and hash algorithm.
Hi again drieseng - sorry to be a pain in the ****
Is this what you were asking? (the output from Package Manager on installing the beta 3)
Attempting to gather dependency information for package 'SSH.NET.2016.0.0-beta3' with respect to project 'TaskyAndroid', targeting 'MonoAndroid,Version=v6.0'
Attempting to resolve dependencies for package 'SSH.NET.2016.0.0-beta3' with DependencyBehavior 'Lowest'
Resolving actions to install package 'SSH.NET.2016.0.0-beta3'
Resolved actions to install package 'SSH.NET.2016.0.0-beta3'
Adding package 'SSH.NET.2016.0.0-beta3' to folder 'C:\Users\Tim\Downloads\Tasky\packages'
Added package 'SSH.NET.2016.0.0-beta3' to folder 'C:\Users\Tim\Downloads\Tasky\packages'
Added package 'SSH.NET.2016.0.0-beta3' to 'packages.config'
Successfully installed 'SSH.NET 2016.0.0-beta3' to TaskyAndroid
========== Finished ==========
Cheers
Tim
I've since been able to reproduce this issue myself.
__Xamarin__ is actually using the __.NETStandard1.3__ target framework version of __SSH.NET__, but doesn't support/load the __System.Security.Cryptography.Primitives__ assembly.
I've contacted someone at __Microsoft__/__Xamarin__ for this issue.
Hi
I am facing same issue when i do import ssh module in windows 2012 server..can some one please help:-
PS C:\Users\Administrator> Import-Module SSH-Sessions
Import-Module : Could not load file or assembly
'file:///C:\Windows\system32\WindowsPowerShell\v1.0\Modules\SSH-Sessions\Renci.SshNet35.dll' or one of its
dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
At line:1 char:2
+ Import-Module SSH-Sessions
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Import-Module], FileLoadException
+ FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand
i have tried :--
$AssemblyFile = 'path of my Renci.SshNet35.dll ' and above link says to unblock the zip file in property ..sorry not able to understand what does that mean..can you please say in detail..
I am new to power-shell does version of RencisshNet different for different for different version of power-shell..
I am using windows 2012 server.
Please help resolve this issue..
Thanks & Regards
Karun