-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Allow suppression of OnConfiguring() generation. #20811
Conversation
Fix for 19608. Truncate/Uniquify Sequence Names.
Pinging @bricelam |
9334bb6
to
2db7457
Compare
else | ||
{ | ||
_reporter.WriteWarning(DesignStrings.OnConfiguringWarning); |
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.
else | |
{ | |
_reporter.WriteWarning(DesignStrings.OnConfiguringWarning); | |
else if (!codeOptions.SuppressOnConfiguring) | |
{ | |
_reporter.WriteWarning(DesignStrings.SensitiveInformationWarning); |
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.
In other words, we shouldn't discourage OnConfiguring. Instead, we should just encourage Name=
.
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.
@bricelam OK. Going ahead with this. What I think you're saying is we should have the --no-onconfiguring
flag, but we should not point people towards it as a way of solving the problem - instead we should just mention Name=
(and leave them to find --no-onconfiguring
on their own if that's what they really want).
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.
Correct. This is the decision we made in triage.
@bricelam All updated as requested. I'd appreciate the final review so I can get this in. Thx. |
Fixes #20526
Fixes #19899.
Allow suppression of
OnConfiguring()
generation.