Skip to content

Commit

Permalink
Upgrade packages (#1279)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob-Hague committed Dec 29, 2023
1 parent 2b53e46 commit 4c2dcd5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
5 changes: 2 additions & 3 deletions Directory.Build.props
Expand Up @@ -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>
4 changes: 2 additions & 2 deletions build/nuget/SSH.NET.nuspec
Expand Up @@ -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">
Expand Down
2 changes: 1 addition & 1 deletion src/Renci.SshNet/Renci.SshNet.csproj
Expand Up @@ -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' ">
Expand Down
5 changes: 5 additions & 0 deletions test/.editorconfig
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion test/Renci.SshNet.IntegrationTests/HostConfig.cs
Expand Up @@ -29,7 +29,7 @@ public static HostConfig Read(ScpClient scpClient, string path)
while ((line = sr.ReadLine()) != null)
{
// skip comments
if (line.StartsWith("#"))
if (line.StartsWith('#'))
{
continue;
}
Expand Down

0 comments on commit 4c2dcd5

Please sign in to comment.