Integrate Blazor Bootstrap into a Razor Project #683
Unanswered
PilatiEric
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently transferring Blazor pages over to my Razor project as I convert it. I'm trying to use a page that employs Blazor Bootstrap but I'm having trouble setting it up so that I can actually make it work.
I tried including all lines specified in this set-up guide in the documentation.
I put the
<script>
and<link>
into the page that is using bootstrap blazor, but there are still two lines that I haven't yet been able to incorporate:var builder = WebApplication.CreateBuilder(args);
builder.Services.AddBlazorBootstrap();
The documentation specifies that these lines should be in the
Program.cs
file, but seeing as the way Blazor and a RazorProgram.cs
files are set up very differently, I'm not sure what to do with them.Does anyone have any insight into how to do this?
Beta Was this translation helpful? Give feedback.
All reactions