-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Remove manual ref-assembly generation for Router #12474
Conversation
We need to review this really carefully to make sure something else doesn't regress. |
src/Components/Components/ref/Microsoft.AspNetCore.Components.netstandard2.0.cs
Show resolved
Hide resolved
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.
I'm gonna say 👍 but I'm not really sure what's going on here. I imagine its likely the ref assembly for components have the wrong stuff and hence the issue?
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.
As long as removing the private
setters from the ref properties is fine (and I seem to remember comments to that effect in other PRs), this looks solid. (Side-by-side comparison turns up only the removal of the private
setters and one property placement correction.)
src/Components/Components/ref/Microsoft.AspNetCore.Components.netstandard2.0.cs
Show resolved
Hide resolved
src/Components/Components/ref/Microsoft.AspNetCore.Components.netstandard2.0.cs
Show resolved
Hide resolved
Nope. Super not-fine - I'm glad you noticed. |
Our choices pre-mondo-ization led us to need these manually maintained ref assemblies and it's been a nightmare to manage. When they get out of sync with the product we only know because of failing template tests. We're at a point now where we can remove all of this garbage. |
Let's figure out a strategy for this first then. I see this is where we decided to require public setters. If it's at all possible not to require public setters that would be a huge benefit. If we did require public setters, we'd have to put them on all the built-in components, which:
|
OK, forget that comment. This is something we've thought through already and decided is the right choice. We're using an analyzer to warn people not to call those setters, so we don't regard it as supported to do so. |
64326e7
to
ba7c6a6
Compare
Updated to use public get/public set |
ba7c6a6
to
52c7c74
Compare
No description provided.