I recently set up a new razor page web app template project in visual studio 2022.
As I started adding some bootstrap CSS classes, here is the HTML snippet that I used:
<form method="get">
<div class="form-group">
<div class="input-group">
<input type="text" class="form-control" name="searchTerm" value=""/>
<span class="input-group-btn">
<button class="btn btn-primary">
<i class="glyphicon glyphicon-search"></i>
</button>
</span>
</div>
</div>
</form>
The template automatically loads bootstrap in the layout page with these links:
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="42202d2d36313630233202766c74a6e78">[email protected]</a>/dist/css/bootstrap.min.css" integrity="sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn"
crossorigin="anonymous"
Despite this setup, Visual Studio is showing errors for the classes like form-group, input-group-btn, and glyphicon glyphicon-search. Any ideas why?