The ASP.NET 5 web templates from @omnisharp/generator-aspnet updated for Bootstrap 4.
For ASP.NET 5 tooling team and for related projects.
Take aways:
- update
Bower.json
dependencies - use
Gulp
together withprojet.json
event scripts to executenpm install
bower install
and custom Gulp tasks for client side dependencies installation and optimization - update
_Layout.cshtml
link
andscript
tag helpers sources. Note that at moment the Microsoft Ajax CND does not support Bootstrap 4 yet - while Bootstrap CDN service does - remove
Bootstrap Touch Carousel
together withHammer.js
dependencies - asBootstrap Touch Carousel
is no longer actively developed and maintained - update
navbar
component structure as per BS4 - update
carousel
component structure as per BS4 - consistent use of
btn-primary
for primary action on forms
This is still WIP
Take aways:
- update
Bower.json
dependencies - use
Gulp
together withprojet.json
event scripts to executenpm install
bower install
and custom Gulp tasks for client side dependencies installation and optimization - update
_Layout.cshtml
link
andscript
tag helpers sources. Note that at moment the Microsoft Ajax CND does not support Bootstrap 4 yet - while Bootstrap CDN service does - remove
Bootstrap Touch Carousel
together withHammer.js
dependencies - asBootstrap Touch Carousel
is no longer actively developed and maintained - update
navbar
component structure as per BS4 - update
carousel
component structure as per BS4 - update
form
tag helper: noform-horizontal
required - update
form-group
: addrow
class as there is no mixin forform-group
now - create correct
label
+input
BS4 component using below code:
<label asp-for="RememberMe">
<input asp-for="RememberMe" />
@Html.DisplayNameFor(m => m.RememberMe)
</label>
The code will change after MVC TagHelpers are upgraded to support more features. For now the code needs to use standard Razor C# code (which is ugly)
- The
jquery-validation
has been updated to version1.14.0
. It has different distribution files structure similar tojQuery
@peterblazejewicz