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

好久不见. 提交于 2019-12-01 16:32:55

问题


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 they revamped the column sizing system.

Is there any way VS can be updated so it scaffolds etc. correctly after updating a project to bootstrap v4? Or is there going to be an update at some point for this change?


回答1:


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.




回答2:


right here you will find how to replace the template of the edit view scaffolding for Bootstrap 4



来源:https://stackoverflow.com/questions/48547452/can-you-make-visual-studio-scaffold-etc-with-bootstrap-4-in-net-mvc-templates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!