BWA project template: "@" on @render-mode values and .Client
project assembly discovery
#52084
Closed
1 task done
Labels
area-blazor
Includes: Blazor, Razor Components
bug
This issue describes a behavior which is not expected - a bug.
feature-templates
Milestone
Is there an existing issue for this?
Describe the bug
Creating an app from the BWA project template with global WASM interactivity produces ...
Although the at-symbols (
@
) on the values are fine, it departs from our guidance to not place them on values of attribute directives outside of explicit Razor expressions [@(...)
].I recommend 🔪 them off; but if you plan to keep these, it creates a delta between the framework and docs, so how would you like to proceed? Let the delta stand, or change all of the docs to this format for directive attributes? If the latter, it will need to be pushed back quite a bit (24Q1/Q2) because it's a 🐘 job to change them everywhere and I'm 🏃♂️ on many high priority issues for quite a while.
I opened a docs issue just to call out that this is a supported approach if the dev wants to write their markup this way. dotnet/AspNetCore.Docs#31042
Second ❓: WRT the logic for finding the
.Client
project assembly ...I don't see why the latter
_Imports
file-based approach isn't adopted even if sample content is present. After all, even the empty solution (no sample pages) has an_Imports
file. As soon as the dev 🔪 out theCounter
component because any production app isn't going to keep it, it will 💥. Many new devs and new-to-Blazor devs won't know the second approach for the_Imports
file off the top of their head.Expected Behavior
No response
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: