Skip to content
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

Avoid using AddComponentParameter in design time #9265

Merged
merged 4 commits into from
Sep 13, 2023

Conversation

jjonescz
Copy link
Member

@jjonescz jjonescz commented Sep 11, 2023

Fixes AB#1869483.

I think using AddComponentParameter over AddAttribute has no benefit in design time (the motivation for introduction of the method were runtime errors, see #8258) so avoiding it unconditionally in design time should be the safest fix.

@jjonescz jjonescz added the area-compiler Umbrella for all compiler issues label Sep 11, 2023
@jjonescz jjonescz added this to the 17.8 P3 milestone Sep 11, 2023
@jjonescz jjonescz marked this pull request as ready for review September 11, 2023 11:38
@jjonescz jjonescz requested a review from a team as a code owner September 11, 2023 11:38
@davidwengier
Copy link
Contributor

has no benefit in design time

Looking at the difference in codegen, and the complete lack of source mapping or validation of user code, I'm not sure either has a benefit in design time, but probably best not to rock the boat too much 😁

@jjonescz
Copy link
Member Author

@333fred @dotnet/razor-compiler for a second review, thanks

@jjonescz jjonescz enabled auto-merge (squash) September 13, 2023 08:36
@jjonescz jjonescz marked this pull request as draft September 13, 2023 10:17
auto-merge was automatically disabled September 13, 2023 10:17

Pull request was converted to draft

@jjonescz jjonescz marked this pull request as ready for review September 13, 2023 10:17
@jjonescz jjonescz merged commit 006d7cf into dotnet:main Sep 13, 2023
@jjonescz jjonescz deleted the 1869483-MissingAddComponentParameter branch September 13, 2023 10:17
@ghost ghost modified the milestones: 17.8 P3, Next Sep 13, 2023
@Cosifne Cosifne modified the milestones: Next, 17.8 P3 Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-compiler Umbrella for all compiler issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants