Enabled option "Do not use top-level statements" ignored in "Blazor Web App" template for WebAssembly client #52079
Labels
area-blazor
Includes: Blazor, Razor Components
bug
This issue describes a behavior which is not expected - a bug.
day-1
Issues that customers are likely to hit on the first day of using the product
feature-templates
Milestone
Is there an existing issue for this?
Describe the bug
Checked option "Do not use top-level statements" ignored in "Blazor Web App" template for WebAssembly client. The server side will be created without top-level statements but the WeAssembly client is created with top-level statements regardless of option selected.
Expected Behavior
I would expect both the client and server projects to not use top-level statements. When that option is checked.
Steps To Reproduce
Create a new "Blazor Web App" project and select "Do not use top-level statements" then click create. The server project will not use top-level statements but the client project will unexpectedly use top-level statements.
Exceptions (if any)
No response
.NET Version
8.0.100
Anything else?
I am not positive that this is the repo to report this particular issue. I could not find this issue reported anywhere, but I may be missing it.
The text was updated successfully, but these errors were encountered: