-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'await' cannot be used in an expression containing the type 'System.ReadOnlySpan<char>' #774
Comments
Thanks for reporting @majora2007! Can you share a self-contained reproduction? A tiny snippet like #713 (comment) is totally fine. |
I just wrote a small .NET 6 program: Program.cs:
GetTest
|
Thanks a ton for sharing the repro! I could reproduce and it seems the root cause is that we're missing the To fix this we need to add the missing overloads. Happy to accept a PR, otherwise I'll take care in the next couple of days. |
This adds support for all `System.IO.Path` members in .NET 5 and 6. BREAKING CHANGE: This is a breaking change for people implementing `System.IO.Abstractions.IPath` or deriving from `System.IO.Abstractions.PathBase` because new members have been added to their API surface. Fixes #774
This is addressed in release v15.0.1. |
Hi, love the project, it just gave me a headache this afternoon! The fix doesnt work for .net Core 3.1, This is no longer a significant issue for me as I have just updated to .net5.0 to workaround the problem but it might occur for others so I thought I should raise an issue: The fix appears to only apply to FEATURE_PATH_JOIN_WITH_PARAMS which supports the following targets: Condition="'$(TargetFramework)' == 'net6.0' OR '$(TargetFramework)' == 'net5.0'"> I'm having this issue with .net Core 3.1 but you can see from the link below that it should support Join(string path1, string path2) |
Describe the bug
When utilizing System.IO.Abstractions for Path.Join, the following code snippet does not compile on .NET 6, however it does when using System.IO Path.Join.
Expected behavior
I expect that the Abstraction works identically to System.IO and it builds and functions correctly.
Additional context
I am using .NET 6 and System.IO.Abstractions 14.0.3
The text was updated successfully, but these errors were encountered: