您可以使用.NET MVC模板中的bootstrap 4制作Visual Studio支架等吗? [英] Can you make visual studio scaffold etc. with bootstrap 4 in .NET MVC templates?

查看:172
本文介绍了您可以使用.NET MVC模板中的bootstrap 4制作Visual Studio支架等吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在vs17中创建新项目时(c#中的基本mvc .net Web应用程序).它带有引导程序3,这意味着所有脚手架的页面和设计都存在错误,因为它们修改了列大小调整系统.

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.

在将项目更新到Bootstrap v4之后,是否可以通过任何方式更新VS,以便它正确地支撑脚手架等?还是会在某个时候进行此更改的更新?

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?

推荐答案

在使用VS17 asp.net核心mvc支架时,我遇到了同样的问题.稍加挖掘,我就能找到一个指导您完成更新引导程序和jquery的教程(向下滚动页面三分之一到通过Bower Package升级Bootstrap"部分):

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

此外,还可以使用更现代的Bootstrap版本创建自定义脚手架.如果您发现自己需要经常更新,则值得研究一下.

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.

这篇关于您可以使用.NET MVC模板中的bootstrap 4制作Visual Studio支架等吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆