Skip to content

Added support of C#11 to templates#27361

Merged
vlada-shubina merged 1 commit intodotnet:release/7.0.1xxfrom
vlada-shubina:templates-fix
Aug 24, 2022
Merged

Added support of C#11 to templates#27361
vlada-shubina merged 1 commit intodotnet:release/7.0.1xxfrom
vlada-shubina:templates-fix

Conversation

@vlada-shubina
Copy link
Copy Markdown
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
@ghost ghost added the Area-Infrastructure label Aug 23, 2022
@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
Copy Markdown
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