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

Blazor Web App template with global WebAssembly interactivity doesn't compile #51862

Closed
1 task done
tma-lawo opened this issue Nov 3, 2023 · 1 comment
Closed
1 task done
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Status: Resolved

Comments

@tma-lawo
Copy link

tma-lawo commented Nov 3, 2023

Is there an existing issue for this?

  • I have searched the existing issues

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

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-blazor Includes: Blazor, Razor Components label Nov 3, 2023
@mkArtakMSFT
Copy link
Member

mkArtakMSFT commented Nov 6, 2023

Thanks for contacting us. This has been fixed and the fix will ship in the upcoming 8.0 GA release: #50980

@mkArtakMSFT mkArtakMSFT added the ✔️ Resolution: Duplicate Resolved as a duplicate of another issue label Nov 6, 2023
@ghost ghost added the Status: Resolved label Nov 6, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Dec 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Status: Resolved
Projects
None yet
Development

No branches or pull requests

2 participants