Upgrade packages (#1279)

This commit is contained in:
Rob Hague
2023-12-29 04:06:50 +00:00
committed by GitHub
parent 2b53e462dd
commit 4c2dcd5613
5 changed files with 11 additions and 7 deletions
+2 -3
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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.
@@ -29,7 +29,7 @@ namespace Renci.SshNet.IntegrationTests
while ((line = sr.ReadLine()) != null)
{
// skip comments
if (line.StartsWith("#"))
if (line.StartsWith('#'))
{
continue;
}