Hi @David Thielen
There is no bootstrap.js anywhere in the project. And no <script... /> to include it.
For this issue, it is by design. When using the Blazor Server App and Blazor WebAssembly App project templates to create projects, it will create a project with basic test page, and we've removed Bootstrap so that you can start with a different CSS framework.
To use bootstrap in Blazor application, you can right click the "wwwroot" folder, click "Add" =>"Client-Side Library...", then in the popup window select the Bootstrap library and set the target location, after that click the "Install" button.
Then, you can add find the bootstrap reference file in the target location and add the script reference in the _host.cshtml page like this:
<script src="~/lib/bootstrap/js/bootstrap.min.js"></script>
It does pull in blazor.server.js but I cannot find that file nor a _framework folder.
The blazor.server.js file is an embedded resource on the Microsoft.AspNetCore.Components.Server.dll assembly, which ships as part of the ASP.NET Core shared framework. So, you can't find it in a _framework folder in the VS. But you can check the source code from the F12 developer Sources tools:
It created the link to LouisHowe.styles.css but there is no LouisHowe.styles.css file. What's going on with that? (The name of my app is LouisHowe.)
In asp.net core application, by default the static files (such as HTML, CSS, images, and JavaScript) are stored within the project's web root directory.
So, you can add the LouisHow2.css file in the wwwroot\css
folder, then add the css reference like this: <link href="~/css/LouisHowe.css" />
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Dillion