Blazor Web App template with global WebAssembly interactivity doesn't compile #51862
Closed
1 task done
Labels
area-blazor
Includes: Blazor, Razor Components
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
Status: Resolved
Is there an existing issue for this?
Describe the bug
When you create a new project with the Blazor Web App template with interactivity type set to WebAssembly and interactivity location set to Global, the project won't build.
The error:
\Pages\Error.razor(28,33,28,44): error CS0246: The type or namespace name 'HttpContext' could not be found (are you missing a using directive or an assembly reference?)
Expected Behavior
The project builds without having to manually fix the error.
Steps To Reproduce
Create a new project with the Blazor Web App template with interactivity type set to WebAssembly and interactivity location set to Global, then build.
Exceptions (if any)
No response
.NET Version
8.0.100-rc.2.23502.2
Anything else?
IDE: Version 17.8.0 Preview 6.0
The text was updated successfully, but these errors were encountered: