Forum Discussion

RickM2006's avatar
RickM2006
Copper Contributor
Jan 05, 2022

VS2022 Bootstrap 5 No intellisense for asp.net core MVC project

Hello,

 

I just downloaded VS2022 and created an asp.net core web app MVC project.  First thing I noticed was it uses bootstrap 5, but does not have intellisense.

 

Nothing special going on.

1. Create new project

2. Select asp.net Core Web App (Model-View-Controller)

3. Edit one of the provided .cshtml files

4. Check for intellisense, i.e.   <div class="text-success">

 

Any suggestions?

2 Replies

  • Mandavas's avatar
    Mandavas
    Copper Contributor

    Step 1:- Visual Studio 2022 IDE --> Tools -> Options

     

    Step 2:- HTML --> Advanced --> Use legacy Razor editor for ASP.NET Core set as True

     

     

    Step 3:- Restart Visual Studio 2022

     

  • roman97's avatar
    roman97
    Copper Contributor
    Hi
    There is a workaround: copy the bootstrap CSS file into wwwroot.
    Best regards

Resources