Skip to content

Commit

Permalink
Upgrade NuGet packages
Browse files Browse the repository at this point in the history
Fixed some code analysis warnings and suggestions.
  • Loading branch information
menees committed Oct 9, 2024
1 parent 46bcf83 commit e609180
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 14 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ csharp_style_prefer_extended_property_pattern = true:suggestion
csharp_style_var_for_built_in_types = false:silent
csharp_style_var_when_type_is_apparent = false:silent
csharp_style_var_elsewhere = false:silent
csharp_style_prefer_method_group_conversion = true:silent
csharp_style_prefer_top_level_statements = false:silent
csharp_style_prefer_primary_constructors = false:suggestion

# Code files
[*.{cs,vb}]
Expand Down Expand Up @@ -216,3 +219,4 @@ dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:sil
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
dotnet_style_prefer_collection_expression = when_types_loosely_match:suggestion
6 changes: 3 additions & 3 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<DebugType>embedded</DebugType>

<!-- Make the assembly, file, and NuGet package versions the same. -->
<Version>1.0.0</Version>
<Version>1.0.1</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)'=='Debug'">
Expand Down Expand Up @@ -77,15 +77,15 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Menees.Analyzers" Version="3.0.11">
<PackageReference Include="Menees.Analyzers" Version="3.2.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="6.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.376">
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
4 changes: 2 additions & 2 deletions src/Menees.Remoting/Menees.Remoting.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="System.Text.Json" Version="6.0.5" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.1" />
<PackageReference Include="System.Text.Json" Version="6.0.10" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.4" />
</ItemGroup>

<Choose>
Expand Down
5 changes: 2 additions & 3 deletions src/Menees.Remoting/Node.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

#region Using Directives

using System.Reflection;
using Menees.Remoting.Json;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using Menees.Remoting.Json;

#endregion

Expand All @@ -17,9 +16,9 @@ public abstract class Node : IDisposable
#region Protected Data Members

private readonly string serverPath;
private readonly Func<string, Type?> tryGetType;

private bool disposed;
private Func<string, Type?> tryGetType;
private ISerializer? systemSerializer;
private ISerializer? userSerializer;
private Func<string, ILogger>? createLogger;
Expand Down
4 changes: 2 additions & 2 deletions src/Menees.Remoting/NodeSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

#region Using Directives

using Menees.Remoting.Security;
using Microsoft.Extensions.Logging;
using System.Reflection;
using System.Runtime.InteropServices;
using Menees.Remoting.Security;
using Microsoft.Extensions.Logging;

#endregion

Expand Down
3 changes: 0 additions & 3 deletions src/Menees.Remoting/RmiNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
#region Using Directives

using System.Reflection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using Menees.Remoting.Json;

#endregion

Expand Down
1 change: 0 additions & 1 deletion tests/Menees.Remoting.TestHost/LogManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using System.Collections;

#endregion

Expand Down

0 comments on commit e609180

Please sign in to comment.