-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
System.Range not included in NetFramework 4.6.2 projects #96
Comments
I started seeing this today, in a project that had previously been working. Getting an error from the analyzer saying I need to use at least C# 8 Which I most certainly am Doesn't work from VS (17.10P2) or from dotnet CLI (SDK 8.0.200). Unfortunately I did a full Patch Tuesday update, including grabbing the new VS preview, so I don't know which thing broke it. |
Ah, looks like I probably hadn't built the Reverting that, I do still see the warning node, but the types are being generated. The list includes |
...And it's mentioned on the readme under a note for .NET 3.5. If you don't have |
🦆 |
Description (optional)
I have several NetFramework 4.6.2 projects in a solution and when compiling them, I noticed build issues when using the new range syntax for strings. I replaced the usages of range with SubString calls and compiled the solution then opened the compiled assembly and noticed that the System.Range has not been included.
Maybe I'm doing something wrong? but, I wasn't able to find anything about this in the docs.
Reproduction Steps
Expected Behavior
The assembly should contain System.Range and the range syntax should work.
Actual Behavior
If range syntax is used the build will fail. If range syntax is not used, build is successful, but the System.Range won't be included.
System info
This section should contain useful info such as:
Additional context (optional)
I did not notice any messages from Polysharp in the build log, even when building with detailed logging.
The text was updated successfully, but these errors were encountered: