Skip to content

Support File.ReadAllLinesAsync and friends on .NET Core 3 / netstandard2.1#502

Merged
fgreinacher merged 8 commits intoTestableIO:masterfrom
christianrondeau:master
Sep 26, 2019
Merged

Support File.ReadAllLinesAsync and friends on .NET Core 3 / netstandard2.1#502
fgreinacher merged 8 commits intoTestableIO:masterfrom
christianrondeau:master

Conversation

@christianrondeau
Copy link
Copy Markdown
Contributor

Solves #499, but to do that I added a new netstandard2.1 target. As an example, if you look here, you'll see these async methods were there since netcoreapp2.0 but only available starting with netstandard2.1: https://docs.microsoft.com/en-us/dotnet/api/system.io.file.readallbytesasync?view=netstandard-2.1

I'm not fully sure if this will magically work for the nuget releases, nor if the build server can actually build it (it needs the now-stable preview 8 of .net core 3), but if you want you can merge this after the official .net core 3 release!

@christianrondeau
Copy link
Copy Markdown
Contributor Author

As expected, NETSDK1045: The current .NET SDK does not support targeting .NET Standard 2.1. Either target .NET Standard 2.0 or lower, or use a version of the .NET SDK that supports .NET Standard 2.1.

This means this PR can only be merged if/when the build server supports .NET Core 3.

@fgreinacher
Copy link
Copy Markdown
Contributor

The Ubuntu image seems to have the correct .NET Core SDK now. Windows images don't seem to work yet. Let's just hang on :)

Adding new methods to our public interfaces is a breaking change for implementors that should be visible to consumers.
@fgreinacher fgreinacher merged commit 0ef2d98 into TestableIO:master Sep 26, 2019
@fgreinacher
Copy link
Copy Markdown
Contributor

Thanks a lot for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants