sshnet / sshnet/SSH.NET

Missing System.Numerics.Vectors, Version=4.1.4.0

Open
#1,773 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
4.4k
Forks
993
Avg merge
9d 21h
Merged PRs (30d)
1

Description

It appears that the .NET Framework fails in certain scenarios because dependencies are not resolved correctly within the .NET ecosystem. An error occurs specifically when running under .NET Standard 2.0 or .NET Framework 4.7, though it does not persist in .NET 6.0 under the same conditions.

NOTE: There is mismatch between package version and dll version in System.Numerics.Vectors - assembly 4.1.4.0 is actually in System.Numerics.Vectors version 4.5.0

Error message:

System.IO.FileNotFoundException: Could not load file or assembly 'System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

Stack Trace:

Renci.SshNet.Security.Cryptography.Ciphers.AesCipher.CtrImpl.ArrayXOR(Byte[] buffer, Byte[] data, Int32 offset, Int32 length)
   at Renci.SshNet.Security.Cryptography.Ciphers.AesCipher.CtrImpl.CTREncryptDecrypt(Byte[] data, Int32 offset, Int32 length)
   at Renci.SshNet.Session.SendMessage(Message message)
   at Renci.SshNet.Session.<ConnectAsync>d__183.MoveNext()

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at Renci.SshNet.Security.Cryptography.Ciphers.AesCipher.CtrImpl.ArrayXOR in the stack trace and reproduce the failure under .NET Standard 2.0 or .NET Framework 4.7, comparing it with .NET 6.0. Check how System.Numerics.Vectors version 4.1.4.0 is resolved from the 4.5.0 package; done means the reported scenarios no longer raise FileNotFoundException.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
networking, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.