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 #7645

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.

Microsoft Reviewers: Open in CodeFlow

@vlada-shubina vlada-shubina requested a review from a team as a code owner August 23, 2022 08:50
@ghost ghost assigned vlada-shubina Aug 23, 2022
@vlada-shubina
Copy link
Member Author

@merriemcgaw @RussKie please help to review and ensure it gets to 7.0, thank you.

do you have any automation tests to cover this change?

cc: @baronfel

@baronfel
Copy link
Member

The SDK version of this same fix was just approved for merge, so this should be merge-able as well for 7.0: dotnet/sdk#27361

@dreddy-work
Copy link
Member

The SDK version of this same fix was just approved for merge, so this should be merge-able as well for 7.0: dotnet/sdk#27361

@baronfel , I missed part of the discussion in tactics. Is that sdk branch pointing RC1 or RC2?

@baronfel
Copy link
Member

It's on the 'base' 7.0.1xx branch, which right now is RC2.

@dreddy-work
Copy link
Member

/backport to main

@github-actions
Copy link
Contributor

Started backporting to main: https:/dotnet/winforms/actions/runs/2913582126

@RussKie
Copy link
Member

RussKie commented Aug 24, 2022

do you have any automation tests to cover this change?

Unfortunately we don't. Still waiting for dotnet/templating#3868 ;)

@dreddy-work dreddy-work merged commit 53a4fa0 into dotnet:release/7.0 Aug 24, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Sep 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants