Skip to content

Add .NET 10 target #143

Add .NET 10 target

Add .NET 10 target #143

Triggered via push July 15, 2025 18:46
Status Failure
Total duration 8m 13s
Artifacts

build.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

30 errors
Linux: src/Renci.SshNet/PrivateKeyFile.SSHCOM.cs#L31
Call System.IDisposable.Dispose on object created by 'new SshDataStream(_data)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
Linux: src/Renci.SshNet/PrivateKeyFile.SSHCOM.cs#L56
Call System.IDisposable.Dispose on object created by 'new TripleDesCipher(key, new byte[8], CipherMode.CBC, pkcs7Padding: false)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
Linux: src/Renci.SshNet/Sftp/SftpFileStream.cs#L1164
'_session != null' is always 'true'. Remove or refactor the condition(s) to avoid dead code. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1508)
Linux: src/Renci.SshNet/NetConfClient.cs#L302
Null check can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0031)
Linux: src/Renci.SshNet/Netconf/NetConfSession.cs#L222
Null check can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0031)
Linux: src/Renci.SshNet/Netconf/NetConfSession.cs#L216
Null check can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0031)
Linux: src/Renci.SshNet/Channels/ChannelDirectTcpip.cs#L296
'socket != null' is always 'true'. Remove or refactor the condition(s) to avoid dead code. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1508)
Linux: src/Renci.SshNet/Channels/ChannelDirectTcpip.cs#L127
'_socket is null' is always 'false'. Remove or refactor the condition(s) to avoid dead code. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1508)
Linux: src/Renci.SshNet/Channels/ChannelForwardedTcpip.cs#L167
'socket != null' is always 'true'. Remove or refactor the condition(s) to avoid dead code. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1508)
Linux: src/Renci.SshNet/SshClient.cs#L328
Null check can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0031)
Windows: src/Renci.SshNet/PrivateKeyFile.PuTTY.cs#L166
Call System.IDisposable.Dispose on object created by 'new SshDataStream(_publicKey)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
Windows: src/Renci.SshNet/PrivateKeyFile.PuTTY.cs#L170
Call System.IDisposable.Dispose on object created by 'new SshDataStream(privateKey)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
Windows: src/Renci.SshNet/PrivateKeyFile.SSHCOM.cs#L56
Call System.IDisposable.Dispose on object created by 'new TripleDesCipher(key, new byte[8], CipherMode.CBC, pkcs7Padding: false)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
Windows: src/Renci.SshNet/PrivateKeyFile.SSHCOM.cs#L64
Call System.IDisposable.Dispose on object created by 'new SshDataStream(keyData)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
Windows: src/Renci.SshNet/PrivateKeyFile.SSHCOM.cs#L31
Call System.IDisposable.Dispose on object created by 'new SshDataStream(_data)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
Windows: src/Renci.SshNet/Netconf/NetConfSession.cs#L222
Null check can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0031)
Windows: src/Renci.SshNet/Netconf/NetConfSession.cs#L216
Null check can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0031)
Windows: src/Renci.SshNet/NetConfClient.cs#L302
Null check can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0031)
Windows: src/Renci.SshNet/Common/Lock.cs#L10
Do not lock on objects with weak identity (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2002)
Windows: src/Renci.SshNet/SshClient.cs#L328
Null check can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0031)
Windows Integration Tests: src/Renci.SshNet/PrivateKeyFile.PuTTY.cs#L170
Call System.IDisposable.Dispose on object created by 'new SshDataStream(privateKey)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
Windows Integration Tests: src/Renci.SshNet/PrivateKeyFile.PuTTY.cs#L166
Call System.IDisposable.Dispose on object created by 'new SshDataStream(_publicKey)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
Windows Integration Tests: src/Renci.SshNet/PrivateKeyFile.SSHCOM.cs#L31
Call System.IDisposable.Dispose on object created by 'new SshDataStream(_data)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
Windows Integration Tests: src/Renci.SshNet/PrivateKeyFile.SSHCOM.cs#L64
Call System.IDisposable.Dispose on object created by 'new SshDataStream(keyData)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
Windows Integration Tests: src/Renci.SshNet/PrivateKeyFile.SSHCOM.cs#L56
Call System.IDisposable.Dispose on object created by 'new TripleDesCipher(key, new byte[8], CipherMode.CBC, pkcs7Padding: false)' before all references to it are out of scope (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2000)
Windows Integration Tests: src/Renci.SshNet/SshClient.cs#L328
Null check can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0031)
Windows Integration Tests: src/Renci.SshNet/NetConfClient.cs#L302
Null check can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0031)
Windows Integration Tests: src/Renci.SshNet/Netconf/NetConfSession.cs#L222
Null check can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0031)
Windows Integration Tests: src/Renci.SshNet/Netconf/NetConfSession.cs#L216
Null check can be simplified (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0031)
Windows Integration Tests: src/Renci.SshNet/Common/Lock.cs#L10
Do not lock on objects with weak identity (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2002)