Skip to content

Update import of implicit usings - #5432

Merged
RussKie merged 2 commits into
dotnet:mainfrom
RussKie:fix_5074_implicit_usings
Aug 17, 2021
Merged

RussKie merged 2 commits into
dotnet:mainfrom
RussKie:fix_5074_implicit_usings

Conversation

@RussKie

@RussKie RussKie commented Aug 17, 2021 •

Copy link
Copy Markdown
Contributor

Relates to dotnet/sdk#19521
Relates to dotnet/sdk#19599

Microsoft Reviewers: Open in CodeFlow

@RussKie
RussKie requested a review from a team as a code owner August 17, 2021 02:03
@ghost ghost assigned RussKie Aug 17, 2021

@paul1956 paul1956 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't theses 3 also missing, first 2 for forms designer, third for anything VB?
System.Diagnostics
System.Runtime
Microsoft.VisualBasic

@RussKie

RussKie commented Aug 17, 2021

Copy link
Copy Markdown
Contributor Author

VB always supported implicit usings, this change is for C# only, refer to dotnet/sdk#19521 for more details.
And we've never had the first two in our templates.

@paul1956

paul1956 commented Aug 17, 2021 •

Copy link
Copy Markdown
Contributor

Something changed in VS 2019 16.11.0 and VS 2022 Preview 3 that broke existing WinForms VB Projects and now they require explicate imports for a lot of stuff including System. dotnet/sdk#19735 I thought this was the fix.

@RussKie

RussKie commented Aug 17, 2021

Copy link
Copy Markdown
Contributor Author

Something changed in VS 2019 16.11.0 and VS 2022 Preview 3 that broke existing WinForms VB Projects and now they require explicate imports for a lot of stuff including System. dotnet/sdk#19735 I thought this was the fix.

It got unintendedly regressed in dotnet/sdk#18459. It was fixed in dotnet/sdk#19599, available in the latest SDK.

pranavkm
pranavkm previously approved these changes Aug 17, 2021
@RussKie
RussKie merged commit 7c33a04 into dotnet:main Aug 17, 2021
@RussKie
RussKie deleted the fix_5074_implicit_usings branch August 17, 2021 05:38
@ghost ghost added this to the 6.0 rc1 milestone Aug 17, 2021
@RussKie

RussKie commented Aug 17, 2021

Copy link
Copy Markdown
Contributor Author

Verified against globally installed 6.0.100-rc.1.21416.26 by patching C:\Program Files\dotnet\sdk\6.0.100-rc.1.21416.26\Sdks\Microsoft.NET.Sdk.WindowsDesktop\targets\Microsoft.NET.Sdk.WindowsDesktop.WindowsForms.props/targets.

@ghost ghost locked as resolved and limited conversation to collaborators Jan 27, 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.

3 participants