AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

Blazor Web App Template in Visual Studio v 17.9.4 does not match the "ASP.NET Core Blazor project structure" documentation

Open Maintenance-Partnership-Systems opened this issue 2 years ago • 2 comments

Description

[Enter feedback here] The documentation describes the "Blazor WebAssembly" structure as having an "index.html" file in the wwwroot folder; however a new project created from the template has no index.html file in it (or any other .html or .cshtml files) - but still works correctly. It seems like the structure has changed, but now packages like MudBlazor - which tell you to add lines to the index.html file when installing them - cannot be installed! Where has the index.html file gone?

Page URL

https://learn.microsoft.com/en-us/aspnet/core/blazor/project-structure?view=aspnetcore-8.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/project-structure.md

Document ID

6f27ff37-6b3a-57f5-353a-5cf5aabba7cf

Article author

@guardrex

😎 March! The gateway to spring! 🌞

A green dinosaur 🦖 will be along shortly to assist. Stand-by ........

github-actions[bot] avatar Mar 25 '24 03:03 github-actions[bot]

Hello @Maintenance-Partnership-Systems ... The Blazor WebAssembly portion of the article only corresponds to actual standalone Blazor WebAssembly apps. The Blazor Web App portion (section) of the article pertains to Blazor Web Apps, where the client doesn't have an index.html file. The markup of the SPA is provided by the root component, which is the App component. The App component is described in the server-side structure of the Blazor Web App section.

I'm going to make a small change to the article help indicate this fact: I'll make the "Blazor WebAssembly" heading state: "Standalone Blazor WebAssembly" to make it clearer that the section isn't part of the prior "Blazor Web App" section.

guardrex avatar Mar 25 '24 11:03 guardrex