File tree Expand file tree Collapse file tree
test/Correlate.AspNetCore.Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -203,12 +203,12 @@ Please consider that .NET Core 3.1 and up now has built-in support for [W3C Trac
203203
204204### Supported .NET targets
205205- .NET 6.0, .NET 8.0
206- - .NET Standard 2.0/.NET Core 3.1
206+ - .NET Standard 2.0
207207
208208### ASP.NET Core support
209209- ASP.NET Core 6.0/8.0
210210
211- ### Build requirements
211+ ### Build/test requirements
212212- Visual Studio 2022
213213- .NET 8 SDK
214214- .NET 6 SDK
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFrameworks >net8.0;net6.0;netcoreapp3.1 TargetFrameworks >
4+ <TargetFrameworks >net8.0;net6.0TargetFrameworks >
55 <RootNamespace >CorrelateRootNamespace >
66 PropertyGroup >
77
Original file line number Diff line number Diff line change @@ -39,14 +39,6 @@ public IntegrationTests(TestAppFactory factory)
3939
4040 public void Dispose ( )
4141 {
42- #if NETCOREAPP3_1
43- // NET Core 3.1 test host does not trigger application stopping token, but our diagnostics observable
44- // (subscribed in UseCorrelate) must unsubscribe before next test run.
45- // This is a bit crude but later versions of .NET test host do it properly.
46- // ReSharper disable once ConditionalAccessQualifierIsNonNullableAccordingToAPIContract
47- IHostApplicationLifetime ? appLifetime = _factory ? . Services . GetRequiredService < IHostApplicationLifetime > ( ) ;
48- appLifetime ? . StopApplication ( ) ;
49- #endif
5042 // ReSharper disable ConditionalAccessQualifierIsNonNullableAccordingToAPIContract
5143 _factory ? . Dispose ( ) ;
5244 _mockHttp ? . Dispose ( ) ;
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk.Web" >
22
33 <PropertyGroup >
4- <TargetFrameworks >net8.0;net6.0;netcoreapp3.1 TargetFrameworks >
4+ <TargetFrameworks >net8.0;net6.0TargetFrameworks >
55 <IsTestProject >trueIsTestProject >
66 <RootNamespace >CorrelateRootNamespace >
77 PropertyGroup >
1616 <Serilog_AspNetCore >6.1.0Serilog_AspNetCore >
1717 PropertyGroup >
1818
19- <PropertyGroup Condition =" '$(TargetFramework)'=='netcoreapp3.1'" >
20- <Microsoft_AspNetCore_Mvc_Testing >3.1.32Microsoft_AspNetCore_Mvc_Testing >
21- <Serilog_AspNetCore >6.1.0Serilog_AspNetCore >
22- PropertyGroup >
23-
2419 <ItemGroup >
2520 <PackageReference Include =" Microsoft.AspNetCore.Mvc.Testing" Version =" $(Microsoft_AspNetCore_Mvc_Testing)" />
2621 <PackageReference Include =" Serilog.AspNetCore" Version =" $(Serilog_AspNetCore)" />
You can’t perform that action at this time.
0 commit comments