Skip to content

Commit 4d7b91a

Browse files
Update to net9-preview.6 (#675)
* Ignore security warnings for build-only dependency * Address net9 warnings * Update dependencies * Fix timing issue
1 parent 807dd88 commit 4d7b91a

File tree

7 files changed

+24
-11
lines changed

7 files changed

+24
-11
lines changed

.editorconfig

+1
Original file line numberDiff line numberDiff line change
@@ -385,3 +385,4 @@ dotnet_diagnostic.MA0147.severity = error
385385
dotnet_diagnostic.MA0148.severity = none
386386
dotnet_diagnostic.MA0149.severity = none
387387
dotnet_diagnostic.MA0154.severity = warning
388+
dotnet_diagnostic.MA0158.severity = none

Directory.Build.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<LangVersion>latest</LangVersion>
3+
<LangVersion>preview</LangVersion>
44

55
<Nullable>enable</Nullable>
66
<WarningsAsErrors>$(WarningsAsErrors);nullable;</WarningsAsErrors>

Directory.Packages.props

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<PackageVersion Include="CommunityToolkit.Diagnostics" Version="8.2.2" />
88
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
99
<PackageVersion Include="coverlet.msbuild" Version="6.0.2" />
10-
<PackageVersion Include="DocFx.App" Version="2.76.0" />
10+
<PackageVersion Include="DocFx.App" Version="2.77.0" />
1111
<PackageVersion Include="GitHubActionsTestLogger" Version="2.4.1" />
1212
<PackageVersion Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4" />
1313
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.10.0" />
@@ -18,11 +18,11 @@
1818
<PackageVersion Include="Scriban" Version="5.10.0" />
1919
<PackageVersion Include="System.Linq.Async" Version="6.0.1" />
2020
<PackageVersion Include="ThisAssembly.Resources" Version="1.4.3" />
21-
<PackageVersion Include="xunit" Version="2.8.1" />
21+
<PackageVersion Include="xunit" Version="2.9.0" />
2222
</ItemGroup>
2323

2424
<ItemGroup Condition=" '$(TargetFramework)' != 'netcoreapp3.1' ">
25-
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.0" PrivateAssets="All" />
25+
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" PrivateAssets="All" />
2626
</ItemGroup>
2727

2828
<ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1' ">

Docs/SuperLinq.Docs/SuperLinq.Docs.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFrameworks>net8.0</TargetFrameworks>
6-
<NoWarn>$(NoWarn);CA1852;NU1701</NoWarn>
6+
<NoWarn>$(NoWarn);CA1852;NU1701;NU1902;NU1903</NoWarn>
77
<IsPackable>false</IsPackable>
88
</PropertyGroup>
99

Tests/SuperLinq.Async.Test/TestingSequence.cs

+5
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ ValueTask IAsyncDisposable.DisposeAsync()
9494
return default;
9595
}
9696

97+
[SuppressMessage(
98+
"Style",
99+
"IDE0100",
100+
Justification = "Expanded code is used for better error reporting on test failures"
101+
)]
97102
public IAsyncEnumerator<T> GetAsyncEnumerator(CancellationToken cancellationToken = default)
98103
{
99104
AssertTestingSequence(_enumerationCount == _disposedCount, SimultaneousEnumerations);

Tests/SuperLinq.Async.Test/TimeoutTest.cs

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Test.Async;
1+
namespace Test.Async;
22

33
public sealed class TimeoutTest
44
{
@@ -95,9 +95,10 @@ private sealed class SequenceWithoutThrowIfCancellationRequested : IAsyncEnumera
9595
return AsyncEnumerable.Range(1, 5)
9696
.SelectAwait(async x =>
9797
{
98-
await Task.Delay(TimeSpan.FromMilliseconds(1), CancellationToken.None);
98+
await Task.Delay(TimeSpan.FromMilliseconds(10), CancellationToken.None);
9999
return x;
100-
}).GetAsyncEnumerator(CancellationToken.None);
100+
})
101+
.GetAsyncEnumerator(CancellationToken.None);
101102
}
102103
}
103104

@@ -110,9 +111,10 @@ private sealed class SequenceWithThrowIfCancellationRequested : IAsyncEnumerable
110111
return AsyncEnumerable.Range(1, 5)
111112
.SelectAwait(async x =>
112113
{
113-
await Task.Delay(TimeSpan.FromMilliseconds(1), cancellationToken);
114+
await Task.Delay(TimeSpan.FromMilliseconds(10), cancellationToken);
114115
return x;
115-
}).GetAsyncEnumerator(cancellationToken);
116+
})
117+
.GetAsyncEnumerator(cancellationToken);
116118
}
117119
}
118120
}

Tests/SuperLinq.Test/TestingSequence.cs

+5
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ void IDisposable.Dispose()
7474
AssertTestingSequence(_disposedCount == _enumerationCount, ExpectedDisposal);
7575
}
7676

77+
[SuppressMessage(
78+
"Style",
79+
"IDE0100",
80+
Justification = "Expanded code is used for better error reporting on test failures"
81+
)]
7782
public IEnumerator<T> GetEnumerator()
7883
{
7984
AssertTestingSequence(_enumerationCount == _disposedCount, SimultaneousEnumerations);

0 commit comments

Comments
 (0)