How to use Bootstrap 4 in ASP.NET Core

前端 未结 10 967
故里飘歌
故里飘歌 2020-12-04 05:11

I want to update Bootstrap in ASP.NET Core with NuGet. I used this:

Install-Package bootstrap -Version 4.0.0

It did add the dependencies bu

10条回答
  •  旧巷少年郎
    2020-12-04 05:49

    Unfortunately, you're going to have a hard time using NuGet to install Bootstrap (or most other JavaScript/CSS frameworks) on a .NET Core project. If you look at the NuGet install it tells you it is incompatible:

    if you must know where local packages dependencies are, they are now in your local profile directory. i.e. %userprofile%\.nuget\packages\bootstrap\4.0.0\content\Scripts.

    However, I suggest switching to npm, or bower - like in Saineshwar's answer.

提交回复
热议问题