Skip to content

Conversation

@ryalanms
Copy link
Member

@ryalanms ryalanms commented Jul 17, 2021

WinForms project also import Microsoft.WinFX.targets, and WinForms now relies on implicit imports. Scope disabling implicit imports to WPF. This broke WinForms VB projects.

But it wasn't @JunTaoLuo's change(s). It's actually caused by DisableImplicitNamespaceImports here: ff1be8e#diff-681ca681001fbc20488df7fdbb46a8c40ac2df9dc2210df5ad869aee6a56df16R23
This disables these VB imports:
https://github.com/dotnet/sdk/blob/55195f3c4ba3f582aa91ec824bd24a7ba3e73528/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.DefaultItems.props#L118-L129

/cc @dotnet/wpf-developers

@ryalanms ryalanms requested a review from a team as a code owner July 17, 2021 23:39
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Jul 17, 2021
@ghost ghost requested review from SamBent and fabiant3 July 17, 2021 23:39
@ryalanms ryalanms merged commit 5813b4d into main Jul 17, 2021
@ericstj
Copy link
Member

ericstj commented Jul 18, 2021

FWIW implicit namespace imports have been around for VB much longer than C#. I’d be surprised if they broke WPF, I suspect it’s had them for VB even on .NETFramework.

@vishalmsft vishalmsft deleted the scope.disable.implicit.namespace.imports.to.wpf branch February 10, 2022 06:04
@ghost ghost locked as resolved and limited conversation to collaborators Apr 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants