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 79cfe0d3e..9eae550f0 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -9,19 +9,19 @@
-
+
-
+
-
-
+
+
-
+
-
-
+
+
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();