Skip to content

Commit 1c40c46

Browse files
authored
Merge pull request #463 from serilog/dev
10.0.0 Release
2 parents 67a3fc8 + 4810455 commit 1c40c46

18 files changed

+64
-181
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Setup
2727
uses: actions/setup-dotnet@v4
2828
with:
29-
dotnet-version: 9.0.x
29+
dotnet-version: 10.0.x
3030
- name: Compute build number
3131
shell: bash
3232
run: |

Directory.Version.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
33
<!-- This must match the major and minor components of the referenced Microsoft.Extensions.Configuration package. -->
4-
<VersionPrefix>9.0.0</VersionPrefix>
4+
<VersionPrefix>10.0.0</VersionPrefix>
55
</PropertyGroup>
66
</Project>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ Destructuring means extracting pieces of information from an object and create p
340340
],
341341
```
342342

343-
This is how the first destructuring policy would look like:
343+
This is how the first destructuring policy would look:
344344

345345
```csharp
346346
namespace MyFirstNamespace;

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "9.0.100",
3+
"version": "10.0.100",
44
"allowPrerelease": false,
55
"rollForward": "latestFeature"
66
}

sample/Sample/Sample.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net462;net8.0;net9.0</TargetFrameworks>
4+
<TargetFrameworks>net462;net8.0;net9.0;net10.0</TargetFrameworks>
55
<OutputType>Exe</OutputType>
66
<GenerateDocumentationFile>false</GenerateDocumentationFile>
77
</PropertyGroup>
@@ -15,14 +15,14 @@
1515
</ItemGroup>
1616

1717
<ItemGroup>
18-
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="9.0.0" />
18+
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="10.0.0" />
1919
<PackageReference Include="Serilog.Sinks.Async" Version="2.1.0" />
20-
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
21-
<PackageReference Include="Serilog.Sinks.File" Version="6.0.0" />
20+
<PackageReference Include="Serilog.Sinks.Console" Version="6.1.1" />
21+
<PackageReference Include="Serilog.Sinks.File" Version="7.0.0" />
2222
<PackageReference Include="Serilog.Enrichers.Environment" Version="3.0.1" />
23-
<PackageReference Include="Serilog.Expressions" Version="4.0.0" />
23+
<PackageReference Include="Serilog.Expressions" Version="5.0.0" />
2424
<PackageReference Include="Serilog.Formatting.Compact" Version="3.0.0" />
25-
<PackageReference Include="Serilog.Enrichers.Thread" Version="3.1.0" />
25+
<PackageReference Include="Serilog.Enrichers.Thread" Version="4.0.0" />
2626
<PackageReference Include="PolySharp" Version="1.15.0" PrivateAssets="all" />
2727
</ItemGroup>
2828

serilog-settings-configuration.sln.DotSettings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,7 @@ II.2.12 &lt;HandlesEvent /&gt;&#xD;
560560
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpPlaceEmbeddedOnSameLineMigration/@EntryIndexedValue">True</s:Boolean>
561561
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpRenamePlacementToArrangementMigration/@EntryIndexedValue">True</s:Boolean>
562562
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpUseContinuousIndentInsideBracesMigration/@EntryIndexedValue">True</s:Boolean>
563+
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002EMemberReordering_002EMigrations_002ECSharpFileLayoutPatternRemoveIsAttributeUpgrade/@EntryIndexedValue">True</s:Boolean>
563564
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EAddAccessorOwnerDeclarationBracesMigration/@EntryIndexedValue">True</s:Boolean>
564565
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EAlwaysTreatStructAsNotReorderableMigration/@EntryIndexedValue">True</s:Boolean>
565566
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002ECSharpPlaceAttributeOnSameLineMigration/@EntryIndexedValue">True</s:Boolean>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
2+
<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=1b016ada_002Dd437_002D4769_002Da97e_002D159b81809a02/@EntryIndexedValue">&lt;SessionState ContinuousTestingMode="0" IsActive="True" Name="All tests from Solution" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session"&gt;
3+
&lt;Solution /&gt;
4+
&lt;/SessionState&gt;</s:String>
5+
</wpf:ResourceDictionary>

src/Serilog.Settings.Configuration/Serilog.Settings.Configuration.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Authors>Serilog Contributors</Authors>
66
<!-- These must match the Dependencies tab in https://www.nuget.org/packages/microsoft.extensions.configuration at
77
the target version. -->
8-
<TargetFrameworks>net462;netstandard2.0;net8.0;net9.0</TargetFrameworks>
8+
<TargetFrameworks>net462;netstandard2.0;net8.0;net9.0;net10.0</TargetFrameworks>
99
<PackageTags>serilog;json;appsettings</PackageTags>
1010
<PackageIcon>icon.png</PackageIcon>
1111
<PackageReadmeFile>README.md</PackageReadmeFile>
@@ -16,16 +16,16 @@
1616
</PropertyGroup>
1717

1818
<ItemGroup>
19-
<PackageReference Include="PolySharp" Version="1.13.2" PrivateAssets="All" />
20-
<PackageReference Include="Serilog" Version="4.2.0-*" />
19+
<PackageReference Include="PolySharp" Version="1.15.0" PrivateAssets="All" />
20+
<PackageReference Include="Serilog" Version="4.3.0" />
2121
<None Include="..\..\assets\icon.png" Pack="true" PackagePath="" Visible="false" />
2222
<None Include="..\..\README.md" Pack="true" PackagePath="" Visible="false" />
2323
<InternalsVisibleTo Include="Serilog.Settings.Configuration.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100fb8d13fd344a1c6fe0fe83ef33c1080bf30690765bc6eb0df26ebfdf8f21670c64265b30db09f73a0dea5b3db4c9d18dbf6d5a25af5ce9016f281014d79dc3b4201ac646c451830fc7e61a2dfd633d34c39f87b81894191652df5ac63cc40c77f3542f702bda692e6e8a9158353df189007a49da0f3cfd55eb250066b19485ec" />
2424
</ItemGroup>
2525

2626
<ItemGroup>
2727
<!-- The versions of all references in this group must match the major and minor components of the package version prefix. -->
28-
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="9.0.0" />
29-
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="9.0.0" />
28+
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="10.0.0" />
29+
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="10.0.0" />
3030
</ItemGroup>
3131
</Project>

test/Serilog.Settings.Configuration.Tests/PublishSingleFileTests.cs

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,99 +2,90 @@
22
using System.Text;
33
using CliWrap;
44
using CliWrap.Exceptions;
5-
using FluentAssertions;
6-
using FluentAssertions.Execution;
75
using Serilog.Settings.Configuration.Tests.Support;
86
using Xunit.Abstractions;
97

108
namespace Serilog.Settings.Configuration.Tests;
119

1210
[Trait("Category", "Integration")]
13-
public sealed class PublishSingleFileTests : IDisposable, IClassFixture<TestApp>
11+
public sealed class PublishSingleFileTests : IClassFixture<TestApp>
1412
{
1513
readonly ITestOutputHelper _outputHelper;
1614
readonly TestApp _testApp;
17-
readonly AssertionScope _scope;
1815

1916
public PublishSingleFileTests(ITestOutputHelper outputHelper, TestApp testApp)
2017
{
2118
_outputHelper = outputHelper;
2219
_testApp = testApp;
23-
_scope = new AssertionScope();
24-
}
25-
26-
public void Dispose()
27-
{
28-
_scope.Dispose();
2920
}
3021

3122
[Theory]
3223
[ClassData(typeof(PublishModeTheoryData))]
3324
public async Task RunTestApp_NoUsingAndNoAssembly(PublishMode publishMode)
3425
{
3526
var (isSingleFile, stdOut, stdErr) = await RunTestAppAsync(publishMode);
36-
stdOut.Should().Be(isSingleFile ? "Expected exception" : "(Main thread) [Information] Expected success");
37-
stdErr.Should().BeEmpty();
27+
Assert.Equal(stdOut, isSingleFile ? "Expected exception" : "(Main thread) [Information] Expected success");
28+
Assert.Empty(stdErr);
3829
}
3930

4031
[Theory]
4132
[ClassData(typeof(PublishModeTheoryData))]
4233
public async Task RunTestApp_UsingConsole(PublishMode publishMode)
4334
{
4435
var (isSingleFile, stdOut, stdErr) = await RunTestAppAsync(publishMode, "--using-console");
45-
stdOut.Should().Be(isSingleFile ? "() [Information] Expected success" : "(Main thread) [Information] Expected success");
36+
Assert.Equal(stdOut, isSingleFile ? "() [Information] Expected success" : "(Main thread) [Information] Expected success");
4637
if (isSingleFile)
47-
stdErr.Should().Contain("Unable to find a method called WithThreadName");
38+
Assert.Contains("Unable to find a method called WithThreadName", stdErr);
4839
else
49-
stdErr.Should().BeEmpty();
40+
Assert.Empty(stdErr);
5041
}
5142

5243
[Theory]
5344
[ClassData(typeof(PublishModeTheoryData))]
5445
public async Task RunTestApp_UsingThread(PublishMode publishMode)
5546
{
5647
var (isSingleFile, stdOut, stdErr) = await RunTestAppAsync(publishMode, "--using-thread");
57-
stdOut.Should().Be(isSingleFile ? "" : "(Main thread) [Information] Expected success");
48+
Assert.Equal(stdOut, isSingleFile ? "" : "(Main thread) [Information] Expected success");
5849
if (isSingleFile)
59-
stdErr.Should().Contain("Unable to find a method called Console");
50+
Assert.Contains("Unable to find a method called Console", stdErr);
6051
else
61-
stdErr.Should().BeEmpty();
52+
Assert.Empty(stdErr);
6253
}
6354

6455
[Theory]
6556
[ClassData(typeof(PublishModeTheoryData))]
6657
public async Task RunTestApp_AssemblyThread(PublishMode publishMode)
6758
{
6859
var (_, stdOut, stdErr) = await RunTestAppAsync(publishMode, "--assembly-thread");
69-
stdOut.Should().BeEmpty();
70-
stdErr.Should().Contain("Unable to find a method called Console");
60+
Assert.Empty(stdOut);
61+
Assert.Contains("Unable to find a method called Console", stdErr);
7162
}
7263

7364
[Theory]
7465
[ClassData(typeof(PublishModeTheoryData))]
7566
public async Task RunTestApp_AssemblyConsole(PublishMode publishMode)
7667
{
7768
var (_, stdOut, stdErr) = await RunTestAppAsync(publishMode, "--assembly-console");
78-
stdOut.Should().Be("() [Information] Expected success");
79-
stdErr.Should().Contain("Unable to find a method called WithThreadName");
69+
Assert.Equal("() [Information] Expected success", stdOut);
70+
Assert.Contains("Unable to find a method called WithThreadName", stdErr);
8071
}
8172

8273
[Theory]
8374
[ClassData(typeof(PublishModeAndStrategyTheoryData))]
8475
public async Task RunTestApp_ConsoleAndThread(PublishMode publishMode, string strategy)
8576
{
8677
var (_, stdOut, stdErr) = await RunTestAppAsync(publishMode, $"--{strategy}-console", $"--{strategy}-thread");
87-
stdOut.Should().Be("(Main thread) [Information] Expected success");
88-
stdErr.Should().BeEmpty();
78+
Assert.Equal("(Main thread) [Information] Expected success", stdOut);
79+
Assert.Empty(stdErr);
8980
}
9081

9182
[Theory]
9283
[ClassData(typeof(PublishModeTheoryData))]
9384
public async Task RunTestApp_ConfigureMinimumLevelOnly(PublishMode publishMode)
9485
{
9586
var (_, stdOut, stdErr) = await RunTestAppAsync(publishMode, "--minimum-level-only");
96-
stdOut.Should().Be("(Main thread) [Information] Expected success");
97-
stdErr.Should().BeEmpty();
87+
Assert.Equal("(Main thread) [Information] Expected success", stdOut);
88+
Assert.Empty(stdErr);
9889
}
9990

10091
async Task<(bool IsSingleFile, string StdOut, string StdErr)> RunTestAppAsync(PublishMode publishMode, params string[] args)

test/Serilog.Settings.Configuration.Tests/Serilog.Settings.Configuration.Tests.csproj

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT'">net48</TargetFrameworks>
5-
<TargetFrameworks>$(TargetFrameworks);net8.0;net9.0</TargetFrameworks>
5+
<TargetFrameworks>$(TargetFrameworks);net8.0;net9.0;net10.0</TargetFrameworks>
66
<DeterministicSourcePaths>false</DeterministicSourcePaths>
77
<GenerateDocumentationFile>false</GenerateDocumentationFile>
88
</PropertyGroup>
@@ -19,17 +19,19 @@
1919
</ItemGroup>
2020

2121
<ItemGroup>
22-
<PackageReference Include="CliWrap" Version="3.6.7" />
23-
<PackageReference Include="FluentAssertions" Version="6.12.2" />
24-
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="9.0.0" />
25-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
26-
<PackageReference Include="NuGet.Frameworks" Version="6.12.1" />
27-
<PackageReference Include="Polly" Version="8.5.0" />
28-
<PackageReference Include="Serilog.Expressions" Version="4.0.0" />
29-
<PackageReference Include="xunit" Version="2.9.2" />
30-
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" />
31-
<PackageReference Include="Shouldly" Version="4.2.1" />
32-
<PackageReference Include="PublicApiGenerator" Version="11.1.0" />
22+
<PackageReference Include="CliWrap" Version="3.10.0" />
23+
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="10.0.0" />
24+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
25+
<PackageReference Include="NuGet.Frameworks" Version="7.0.0" />
26+
<PackageReference Include="Polly" Version="8.6.4" />
27+
<PackageReference Include="Serilog.Expressions" Version="5.0.0" />
28+
<PackageReference Include="xunit" Version="2.9.3" />
29+
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
30+
<PrivateAssets>all</PrivateAssets>
31+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
32+
</PackageReference>
33+
<PackageReference Include="Shouldly" Version="4.3.0" />
34+
<PackageReference Include="PublicApiGenerator" Version="11.5.1" />
3335
</ItemGroup>
3436

3537
<ItemGroup>

0 commit comments

Comments
 (0)