Skip to content

Commit cc8c114

Browse files
committed
Updated dependencies and removed obsolete code
* Updated most nugets to the latest version (except SqlClient). * Removed obsolete System.Configuration extension methods. They were only used in .NET Framework 4.5.2 which is not supported anymore. * Simplified and consolidated frameworrk conditions in csproj files
1 parent 4fc1070 commit cc8c114

File tree

9 files changed

+15
-1099
lines changed

9 files changed

+15
-1099
lines changed

sample/AppConfigDemo/AppConfigDemo.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
</ItemGroup>
5959
<ItemGroup>
6060
<PackageReference Include="Serilog">
61-
<Version>2.5.0</Version>
61+
<Version>2.12.0</Version>
6262
</PackageReference>
6363
</ItemGroup>
6464
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

sample/CombinedConfigDemo/CombinedConfigDemo.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</ItemGroup>
1313

1414
<ItemGroup>
15-
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="3.1.4" />
15+
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="6.0.0" />
1616
</ItemGroup>
1717

1818
<ItemGroup>

sample/NetStandardDemo/NetStandardDemoApp/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static void Main()
1313

1414
Log.Debug("Getting started");
1515

16-
Log.Information("Hello {Name} from thread {ThreadId}", Environment.GetEnvironmentVariable("USERNAME"), Thread.CurrentThread.ManagedThreadId);
16+
Log.Information("Hello {Name} from thread {ThreadId}", Environment.GetEnvironmentVariable("USERNAME"), Environment.CurrentManagedThreadId);
1717

1818
Log.Warning("No coins remain at position {@Position}", new { Lat = 25, Long = 134 });
1919

sample/WorkerServiceDemo/WorkerServiceDemo.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.Extensions.Hosting" Version="3.1.4" />
10-
<PackageReference Include="Serilog.Extensions.Hosting" Version="3.0.0" />
11-
<PackageReference Include="Serilog.Settings.Configuration" Version="3.1.0" />
9+
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1" />
10+
<PackageReference Include="Serilog.Extensions.Hosting" Version="5.0.1" />
11+
<PackageReference Include="Serilog.Settings.Configuration" Version="3.4.0" />
1212
</ItemGroup>
1313

1414
<ItemGroup>

src/Serilog.Sinks.MSSqlServer/Configuration/Extensions/System.Configuration/LoggerConfigurationMSSqlServerExtensions.cs

Lines changed: 0 additions & 270 deletions
This file was deleted.

0 commit comments

Comments
 (0)