Twitter.Bootstrap.MVC4– new release 1.0.71

To learn more about the Package read these blog posts:

Some interesting stats for the project. It has gotten a bunch of attention on the interwebs. The package has over 2,500 downloads, we have had 20 pull request(contributions) from github users. I am excited to see a number of active developers using the package from around the world. I would also like to thank the Codebetter Teamcity team for updating to the latest version of the build server, so I can add the build status icon directly to the readme page, which makes it easier for anyone using our trunk builds.

Here is the updated readme from the site https://github.com/erichexter/twitter.bootstrap.mvc:

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.

Features

  • 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 CRUDviews.
  • Post Redirect Getsupport 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.

> 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 (http://www.myget.org/F/erichexter/)

Build Status:

Brought to you by Eric Hexter

Related Articles:

Post Footer automatically generated by Add Post Footer Plugin for wordpress.

About Eric Hexter

I am the CTO for QuarterSpot. I (co)Founded MvcContrib, Should, Solution Factory, and Pstrami open source projects. I have co-authored MVC 2 in Action, MVC3 in Action, and MVC 4 in Action. I co-founded online events like mvcConf, aspConf, and Community for MVC. I am also a Microsoft MVP in ASP.Net.
This entry was posted in Asp.Net, Asp.Net MVC, Bootstrap.mvc, c#, CodeProject, jQuery and tagged . Bookmark the permalink. Follow any comments here with the RSS feed for this post.
  • Morten Bormeth

    A clean install on an empty MVC4 project, gives me a 404 error when runnin? :) Somethin i missed.. Just ran thoes to install-package in the PM worked just fine. 

  • http://www.facebook.com/paul.sorauer Paul M Sorauer

    Hi Eric

    I’m having some problems with this. I’ve run the package installer directly on an empty MVC 4 site but seem to be getting some severe javascript issues.

    I’ve not made any changes to the code at all.

    I’ve posted a question on Stackoverflow: http://stackoverflow.com/questions/14459651/twitter-bootstrap-for-asp-net-mvc-4-jquery-1-9-and-jquery-validate-js

    Would you mind taking a look, please? I can’t figure this out myself. :)

    Cheers,

    Paul.

    PS: I’ve posted this question a few places in the hope that when / if other people have a similar issue they can find the answer quickly. :) Thanks Eric.

  • http://www.facebook.com/rich.thinker.3 Rich Thinker

    I was getting js errors as well. Try creating a “Basic MVC4″ site in VS2012 then perform a Nuget to get the package and the sample project and that should work.

  • Jephy Joy

    Creating a Login and SignUp application using symfony2 and twitter bootstrap in 30min

    5 video to show hot to setup a login and signup application from scratch..

    http://youtu.be/AvLk3i2CBgw

    http://youtu.be/seztFo5j7H4

    http://youtu.be/hzURtNJUQb4

    http://youtu.be/Uh0a7m2XxLU

    http://youtu.be/sE7f5k9NZ6A

  • tinonetic

    I have been trying to get the sample project working

    Created an Empty MVC project.

    Ran the two Nuget Commands(for the main package and samples).

    Saw some compile errors, closed and re-opened as advised

    Cleaned, built, rebuilt, closed, re-opened, re-installed… all the while still getting errors.

    Manually downloaded the zip from Github, copied source files into the project folder(merging and not replacing what exists) Still getting the following errors:

    The name ‘NavigationRouteFilters’ does not exist in the current context ..App_StartExampleLayoutsRouteConfig.cs
    The type or namespace name ‘NavigationRouteOptions’ could not be found (are you missing a using directive or an assembly reference?) ..App_StartExampleLayoutsRouteConfig.cs
    ‘System.Web.Routing.RouteValueDictionary’ does not contain a definition for ‘FilterToken’ and no extension method ‘FilterToken’ accepting a first argument of type ‘System.Web.Routing.RouteValueDictionary’ could be found (are you missing a using directive or an assembly reference?) ..NavigationRouteFilterExamplesAdministrationRouteFilter.cs
    ‘System.Web.Routing.RouteValueDictionary’ does not contain a definition for ‘HasFilterToken’ and no extension method ‘HasFilterToken’ accepting a first argument of type ‘System.Web.Routing.RouteValueDictionary’ could be found (are you missing a using directive or an assembly reference?) ..NavigationRouteFilterExamplesAdministrationRouteFilter.cs

    • Tito Morais

      Same in here

    • sunil

      solution for this :-Reopen the solution