Jelajahi Sumber

Upgrade packages (#1279)

Rob Hague 1 tahun lalu
induk
melakukan
4c2dcd5613

+ 2 - 3
Directory.Build.props

@@ -34,9 +34,8 @@
         Use fixed version of analyzers.
     -->
   <ItemGroup>
-    <PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0-preview1.23165.1" PrivateAssets="all" />
-    <PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.435" PrivateAssets="all" />
+    <PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556" PrivateAssets="all" />
     <PackageReference Include="Meziantou.Analyzer" Version="2.0.103" PrivateAssets="all" />
-    <PackageReference Include="SonarAnalyzer.CSharp" Version="9.12.0.78982" PrivateAssets="all" />
+    <PackageReference Include="SonarAnalyzer.CSharp" Version="9.16.0.82469" PrivateAssets="all" />
   </ItemGroup>
 </Project>

+ 2 - 2
build/nuget/SSH.NET.nuspec

@@ -17,10 +17,10 @@
         <tags>ssh scp sftp</tags>
         <dependencies>
           <group targetFramework="net462">
-            <dependency id="Microsoft.Bcl.AsyncInterfaces" version="[7.0.0]" />
+            <dependency id="Microsoft.Bcl.AsyncInterfaces" version="[8.0.0]" />
           </group>
           <group targetFramework="netstandard2.0">
-            <dependency id="Microsoft.Bcl.AsyncInterfaces" version="[7.0.0]" />
+            <dependency id="Microsoft.Bcl.AsyncInterfaces" version="[8.0.0]" />
             <dependency id="SshNet.Security.Cryptography" version="[1.3.0]" />
           </group>          
           <group targetFramework="netstandard2.1">

+ 1 - 1
src/Renci.SshNet/Renci.SshNet.csproj

@@ -14,7 +14,7 @@
   </ItemGroup>
 
   <ItemGroup Condition=" '$(TargetFramework)' == 'net462' or '$(TargetFramework)' == 'netstandard2.0' ">
-    <PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="7.0.0" />
+    <PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0.0" />
   </ItemGroup>
 
   <PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'netstandard2.1' or '$(TargetFramework)' == 'net6.0' or '$(TargetFramework)' == 'net7.0' or '$(TargetFramework)' == 'net8.0' ">

+ 5 - 0
test/.editorconfig

@@ -130,6 +130,11 @@ dotnet_diagnostic.CA1711.severity = none
 # We do not care about this for unit tests.
 dotnet_diagnostic.CA1720.severity = none
 
+# CA1861: Avoid constant arrays as arguments
+#
+# We do not care about this for unit tests.
+dotnet_diagnostic.CA1861.severity = none
+
 # CA5351: Do not use broken cryptographic algorithms
 #
 # We do not care about this for unit tests.

+ 1 - 1
test/Renci.SshNet.IntegrationTests/HostConfig.cs

@@ -29,7 +29,7 @@ namespace Renci.SshNet.IntegrationTests
                     while ((line = sr.ReadLine()) != null)
                     {
                         // skip comments
-                        if (line.StartsWith("#"))
+                        if (line.StartsWith('#'))
                         {
                             continue;
                         }