nuget package to make bootstrap easy with mvc4
C# PowerShell JavaScript CSS ASP
Switch branches/tags
Nothing to show
Clone or download


##Overview This is the nuget package for quickly adding Twitter Bootstrap to an ASP.Net MVC 4 application.

See the overview blog post for screen shots and features. This is a User Interface project that does not require a specific data access or architecture for you MVC applications. The author has some opinions but those are kept in another project that builds on top of this UI package.


  • JS and CSS bundling/minification of Twitter Bootstrap files the MVC4 way
  • Incorporate a jQuery validation fix to work with the bootstrap javascript
  • Razor Layout templates using Twitter Bootstrap markup.
  • Menus using Navigation Routes, including submenus and hiding menus by context(logged in vs anonymous)
  • Runtime Scaffolding – default Index, Edit and Detail views.. You provide the POCOs and we will render the CRUD views.
  • Post Redirect Get support using the Bootstrap Alert styles.
  • A Sample to show how to use all of this stuff

Things we are working on:

  • MVC code templates to generate new views from the mvc add view / add controller dialogs
  • Strongly typed Html Helpers to render bootstrap concepts like icons

##Install To view a working sample, install the twitter.bootstrap.mvc4.sample in to a MVC4 Empty (template) project.

> Install-Package twitter.bootstrap.mvc4
> Install-Package twitter.bootstrap.mvc4.sample
> Install-Package twitter.bootstrap.mvc4.templates //for MVC Code Templates..(still a work in progress)

###Preview Releases Preview Releases: The preview releases are on this nuget feed (

Build Status:


Place your source code in the src\Bootstrap directory, or make your modifications. Run the build.ps1 from the Package Manager Console to create the packages locally.

From a separate VS instance do an install-package for the local package your interested in. Or, to start a fresh MCV project with all twitter.bootstrap.mvc4.* installed, run Test\EndToEnd\test.ps1.

Before your pull request will be accepted you will need to complete the Contributor Agrement:

Brought to you by Eric Hexter