Skip to content

Commit 66fadfb

Browse files
committed
More fixes
1 parent 57c2846 commit 66fadfb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/System.IO.Abstractions.Extensions/IFileInfoAsyncExtensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
1+
#if NETSTANDARD2_1_OR_GREATER || NET8_0_OR_GREATER
22
#nullable enable
33

44
using System.Collections.Generic;
@@ -85,12 +85,12 @@ public static async IAsyncEnumerable<string> EnumerateLinesAsync(this IFileInfo
8585
? new StreamReader(stream)
8686
: new StreamReader(stream, encoding);
8787

88-
var line = await reader.ReadLineAsync();
88+
var line = await reader.ReadLineAsync(cancellationToken);
8989
while (line != null)
9090
{
9191
yield return line;
9292
cancellationToken.ThrowIfCancellationRequested();
93-
line = await reader.ReadLineAsync();
93+
line = await reader.ReadLineAsync(cancellationToken);
9494
}
9595
}
9696
}

src/System.IO.Abstractions.Extensions/System.IO.Abstractions.Extensions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<PackageId>TestableIO.System.IO.Abstractions.Extensions</PackageId>
5-
<TargetFrameworks>net8.0;netstandard2.1;netstandard2.0;net462</TargetFrameworks>
5+
<TargetFrameworks>net8.0;netstandard2.1;netstandard2.0;net472</TargetFrameworks>
66
<Description>Convenience functionalities on top of System.IO.Abstractions</Description>
77
<RootNamespace>System.IO.Abstractions</RootNamespace>
88
<PackageReleaseNotes>$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)/../../ReleaseNotes.md"))</PackageReleaseNotes>

0 commit comments

Comments
 (0)