Can you make visual studio scaffold etc. with bootstrap 4 in .NET MVC templates?

前端 未结 2 939
再見小時候
再見小時候 2021-01-12 07:46

When you create a new project in vs17 (basic mvc .net web application in c#). It comes with bootstrap 3, which means all the scaffolded pages and designs are wrong since the

2条回答
  •  被撕碎了的回忆
    2021-01-12 08:29

    I ran into this same question when using a VS17 asp.net core mvc scaffold. With a little digging I was able to find a tutorial that walks you through updating bootstrap and jquery (Scroll about a third of the way down the page to the 'Upgrade Bootstrap Through Bower Package' section):

    http://www.mytecbits.com/microsoft/dot-net/bootstrap-asp-net-core-mvc

    Additionally, it is possible to create custom scaffolds with more modern versions of bootstrap. If you find yourself needing to update this often, it may be worth looking into that.

提交回复
热议问题