From 1a9241c623ab1b052048c2853d77fc58a27a424b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 1 Feb 2026 20:54:50 +0000 Subject: [PATCH 1/2] Bump the dependencies group with 6 updates Bumps Meziantou.Analyzer from 2.0.264 to 2.0.288 Bumps Microsoft.Bcl.Cryptography from 10.0.1 to 10.0.2 Bumps Microsoft.Extensions.Logging.Console from 10.0.1 to 10.0.2 Bumps SonarAnalyzer.CSharp from 10.17.0.131074 to 10.19.0.132793 Bumps System.Formats.Asn1 from 10.0.1 to 10.0.2 Bumps Testcontainers from 4.9.0 to 4.10.0 --- updated-dependencies: - dependency-name: Meziantou.Analyzer dependency-version: 2.0.288 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: Microsoft.Bcl.Cryptography dependency-version: 10.0.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: Microsoft.Extensions.Logging.Console dependency-version: 10.0.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: SonarAnalyzer.CSharp dependency-version: 10.19.0.132793 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: System.Formats.Asn1 dependency-version: 10.0.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: Testcontainers dependency-version: 4.10.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies ... Signed-off-by: dependabot[bot] --- Directory.Packages.props | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 79cfe0d3e..96e855c87 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -9,19 +9,19 @@ - + - + - + - + - - + + From 7bc07a03de8c5cb40f856b8ed9a3cba74c15a3a3 Mon Sep 17 00:00:00 2001 From: Robert Hague Date: Sun, 8 Feb 2026 17:20:40 +0100 Subject: [PATCH 2/2] fixes --- .editorconfig | 6 ++++ Directory.Packages.props | 4 +-- .../Connection/ChannelOpenFailureReasons.cs | 28 ------------------- src/Renci.SshNet/Sftp/SFtpStatAsyncResult.cs | 14 ---------- src/Renci.SshNet/Sftp/SftpReadAsyncResult.cs | 14 ---------- .../TestsFixtures/InfrastructureFixture.cs | 3 +- 6 files changed, 9 insertions(+), 60 deletions(-) delete mode 100644 src/Renci.SshNet/Messages/Connection/ChannelOpenFailureReasons.cs delete mode 100644 src/Renci.SshNet/Sftp/SFtpStatAsyncResult.cs delete mode 100644 src/Renci.SshNet/Sftp/SftpReadAsyncResult.cs diff --git a/.editorconfig b/.editorconfig index ba1151fe2..57b9fa6c0 100644 --- a/.editorconfig +++ b/.editorconfig @@ -620,6 +620,12 @@ dotnet_diagnostic.MA0112.severity = warning # MA0165: Make interpolated string dotnet_diagnostic.MA0165.severity = none +# MA0182: Avoid unused internal types +dotnet_diagnostic.MA0182.severity = none + +# MA0184: Do not use interpolated string without parameters +dotnet_diagnostic.MA0184.severity = none + #### MSTest rules #### # MSTEST0015: Test method should not be ignored diff --git a/Directory.Packages.props b/Directory.Packages.props index 96e855c87..9eae550f0 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -9,12 +9,12 @@ - + - + diff --git a/src/Renci.SshNet/Messages/Connection/ChannelOpenFailureReasons.cs b/src/Renci.SshNet/Messages/Connection/ChannelOpenFailureReasons.cs deleted file mode 100644 index 0fbeaf4d3..000000000 --- a/src/Renci.SshNet/Messages/Connection/ChannelOpenFailureReasons.cs +++ /dev/null @@ -1,28 +0,0 @@ -namespace Renci.SshNet.Messages.Connection -{ - /// - /// List channel open failure reasons defined by the protocol. - /// - internal enum ChannelOpenFailureReasons : uint - { - /// - /// SSH_OPEN_ADMINISTRATIVELY_PROHIBITED. - /// - AdministativelyProhibited = 1, - - /// - /// SSH_OPEN_CONNECT_FAILED. - /// - ConnectFailed = 2, - - /// - /// SSH_OPEN_UNKNOWN_CHANNEL_TYPE. - /// - UnknownChannelType = 3, - - /// - /// SSH_OPEN_RESOURCE_SHORTAGE. - /// - ResourceShortage = 4 - } -} diff --git a/src/Renci.SshNet/Sftp/SFtpStatAsyncResult.cs b/src/Renci.SshNet/Sftp/SFtpStatAsyncResult.cs deleted file mode 100644 index 41d915499..000000000 --- a/src/Renci.SshNet/Sftp/SFtpStatAsyncResult.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; - -using Renci.SshNet.Common; - -namespace Renci.SshNet.Sftp -{ - internal sealed class SFtpStatAsyncResult : AsyncResult - { - public SFtpStatAsyncResult(AsyncCallback asyncCallback, object state) - : base(asyncCallback, state) - { - } - } -} diff --git a/src/Renci.SshNet/Sftp/SftpReadAsyncResult.cs b/src/Renci.SshNet/Sftp/SftpReadAsyncResult.cs deleted file mode 100644 index 9814f0e8f..000000000 --- a/src/Renci.SshNet/Sftp/SftpReadAsyncResult.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; - -using Renci.SshNet.Common; - -namespace Renci.SshNet.Sftp -{ - internal sealed class SftpReadAsyncResult : AsyncResult - { - public SftpReadAsyncResult(AsyncCallback asyncCallback, object state) - : base(asyncCallback, state) - { - } - } -} diff --git a/test/Renci.SshNet.IntegrationTests/TestsFixtures/InfrastructureFixture.cs b/test/Renci.SshNet.IntegrationTests/TestsFixtures/InfrastructureFixture.cs index e990d0cbe..160d04c4b 100644 --- a/test/Renci.SshNet.IntegrationTests/TestsFixtures/InfrastructureFixture.cs +++ b/test/Renci.SshNet.IntegrationTests/TestsFixtures/InfrastructureFixture.cs @@ -66,9 +66,8 @@ public async Task InitializeAsync() await _sshServerImage.CreateAsync(); - _sshServer = new ContainerBuilder() + _sshServer = new ContainerBuilder(_sshServerImage) .WithHostname("renci-ssh-tests-server") - .WithImage(_sshServerImage) .WithPortBinding(22, true) .WithLogger(containerLogger) .Build();