Skip to content
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

Better defaults and handling for LangVersion #167

Merged
merged 3 commits into from
Oct 12, 2023
Merged

Conversation

mhutch
Copy link
Member

@mhutch mhutch commented Oct 12, 2023

No description provided.

If a langversion is explicitly provided, use it verbatim. The
compiler will check validity and emit and error if needed.
Otherwise, use the C# language version known to be supported by
the current runtime, as we may be using csc/Roslyn from a newer
runtime where the "latest" language features depend on new APIs
that aren't available on the current runtime.

If we do not have a language version mapping for the runtime, use
"latest" so all its language features are available until we add
the version mapping.

Fix #166 - Support for C# 11
@mhutch mhutch merged commit d5fb8e6 into main Oct 12, 2023
5 checks passed
@virzak
Copy link

virzak commented Dec 30, 2023

Could you release a preview with this feature?

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