-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Disable implicit namespace imports #56046
Conversation
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
I'd convinced myself here: |
Interesting. Let me look at what's going on that it is not working. |
Ah I see. In this case I'm hitting it in runtime/eng/targetingpacks.targets Lines 66 to 82 in d38a539
So I believe the right fix is to move this to the location where we set all these settings for libraries and set it to false only for that scenario. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
In preview7 SDK some namespace imports are defined by default. Most of our projects don't use implicit references as we are low in the stack and producing those references. This can cause issues when building with a preview7 SDK, i.e:
This was introduced to the SDK last week. dotnet/sdk@8594395
cc: @dotnet/runtime-infrastructure