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

Added support of C#11 to templates #27361

Merged
merged 1 commit into from
Aug 24, 2022

Conversation

vlada-shubina
Copy link
Member

@vlada-shubina vlada-shubina commented Aug 23, 2022

Problem

In the templates, the generators which determine minimum language version in use were not considering C#11.
Fixed regex to support it.

Customer impact

Without this fix, using C# 11.0 via --langVersion option will result in old style template (no top level statements, file scoped namespaces, implicit usings)

Testing

Automated

Risk

Very low.
Language version option is only available in CLI and not exposed in Visual Studio.

@vlada-shubina vlada-shubina requested a review from a team as a code owner August 23, 2022 08:42
@vlada-shubina vlada-shubina changed the title added support of C#11 to templates Added support of C#11 to templates Aug 23, 2022
@vlada-shubina
Copy link
Member Author

Related PRs:

@rbhanda rbhanda added this to the 7.0.1xx milestone Aug 23, 2022
@vlada-shubina vlada-shubina merged commit eadd3ba into dotnet:release/7.0.1xx Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants