简体   繁体   中英

ASP .NET Core application can't find bootstrap 5 in Visual Studio 2019

Can't find classes from bootstrap after installing it. Here's how I've added it to my project:

 <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>@ViewData["Title"] - PROJECTNAME</title>
    <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
    <link rel="stylesheet" href="~/css/site.css" />
    <link rel="stylesheet" href="~/lib/bootstrap-5.1.3-dist/css/bootstrap-utilities.css" />
</head>

This is my test result, and my file's downloading from website and copied to the folder, but not installed through visual studio.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM