From 004b57ae9e7ca07f12e7192d7987a8e5d950b04c Mon Sep 17 00:00:00 2001 From: Rob Hague Date: Wed, 30 Aug 2023 14:56:49 +0200 Subject: [PATCH] Fix the assembly resolution build warning (#1165) --- .../IntegrationTests.csproj | 23 +++++++++------- .../ScpClientTests.cs | 2 ++ .../SftpClientTests.cs | 3 +++ .../SshClientTests.cs | 2 ++ src/Renci.SshNet.IntegrationTests/Usings.cs | 27 ------------------- src/Renci.SshNet.IntegrationTests/app.config | 15 ----------- 6 files changed, 20 insertions(+), 52 deletions(-) delete mode 100644 src/Renci.SshNet.IntegrationTests/app.config diff --git a/src/Renci.SshNet.IntegrationTests/IntegrationTests.csproj b/src/Renci.SshNet.IntegrationTests/IntegrationTests.csproj index 244ee6f3a..2fdbcfd74 100644 --- a/src/Renci.SshNet.IntegrationTests/IntegrationTests.csproj +++ b/src/Renci.SshNet.IntegrationTests/IntegrationTests.csproj @@ -7,7 +7,6 @@ false true - true + + runtime; build; native; contentfiles; analyzers; buildtransitive all @@ -33,15 +44,7 @@ - - LocalSshNet - - - - - - PreserveNewest - + diff --git a/src/Renci.SshNet.IntegrationTests/ScpClientTests.cs b/src/Renci.SshNet.IntegrationTests/ScpClientTests.cs index a03b04a3a..5db1fe51c 100644 --- a/src/Renci.SshNet.IntegrationTests/ScpClientTests.cs +++ b/src/Renci.SshNet.IntegrationTests/ScpClientTests.cs @@ -1,3 +1,5 @@ +using Renci.SshNet; + namespace IntegrationTests { /// diff --git a/src/Renci.SshNet.IntegrationTests/SftpClientTests.cs b/src/Renci.SshNet.IntegrationTests/SftpClientTests.cs index 9648587a1..9e91ad70d 100644 --- a/src/Renci.SshNet.IntegrationTests/SftpClientTests.cs +++ b/src/Renci.SshNet.IntegrationTests/SftpClientTests.cs @@ -1,3 +1,6 @@ +using Renci.SshNet; +using Renci.SshNet.Common; + namespace IntegrationTests { /// diff --git a/src/Renci.SshNet.IntegrationTests/SshClientTests.cs b/src/Renci.SshNet.IntegrationTests/SshClientTests.cs index 33a90d13e..867514441 100644 --- a/src/Renci.SshNet.IntegrationTests/SshClientTests.cs +++ b/src/Renci.SshNet.IntegrationTests/SshClientTests.cs @@ -1,3 +1,5 @@ +using Renci.SshNet; + namespace IntegrationTests { /// diff --git a/src/Renci.SshNet.IntegrationTests/Usings.cs b/src/Renci.SshNet.IntegrationTests/Usings.cs index bc21218d4..e6180a739 100644 --- a/src/Renci.SshNet.IntegrationTests/Usings.cs +++ b/src/Renci.SshNet.IntegrationTests/Usings.cs @@ -1,36 +1,9 @@ #pragma warning disable IDE0005 -extern alias LocalSshNet; - global using System.Text; global using Microsoft.VisualStudio.TestTools.UnitTesting; global using IntegrationTests.TestsFixtures; -// The testcontainers library uses SSH.NET, so we have two versions of SSH.NET in the project. -// We need to explicitly choose which version we want to test. -// To avoid problems, we import all namespaces. -global using LocalSshNet::Renci.SshNet; -global using LocalSshNet::Renci.SshNet.Abstractions; -global using LocalSshNet::Renci.SshNet.Channels; -global using LocalSshNet::Renci.SshNet.Common; -global using LocalSshNet::Renci.SshNet.Compression; -global using LocalSshNet::Renci.SshNet.Connection; -global using LocalSshNet::Renci.SshNet.Messages; -global using LocalSshNet::Renci.SshNet.Messages.Authentication; -global using LocalSshNet::Renci.SshNet.Messages.Connection; -global using LocalSshNet::Renci.SshNet.Messages.Transport; -global using LocalSshNet::Renci.SshNet.NetConf; -global using LocalSshNet::Renci.SshNet.Security; -global using LocalSshNet::Renci.SshNet.Security.Chaos; -global using LocalSshNet::Renci.SshNet.Security.Chaos.NaCl; -global using LocalSshNet::Renci.SshNet.Security.Chaos.NaCl.Internal; -global using LocalSshNet::Renci.SshNet.Security.Cryptography; -global using LocalSshNet::Renci.SshNet.Security.Cryptography.Ciphers; -global using LocalSshNet::Renci.SshNet.Security.Org; -global using LocalSshNet::Renci.SshNet.Security.Org.BouncyCastle; - -global using LocalSshNet::Renci.SshNet.Sftp; - diff --git a/src/Renci.SshNet.IntegrationTests/app.config b/src/Renci.SshNet.IntegrationTests/app.config deleted file mode 100644 index 3571058ce..000000000 --- a/src/Renci.SshNet.IntegrationTests/app.config +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - -