In my earlier article, I wrote aboutÂ User Interface Frameworks for Web Developers. One of the frameworks I’ve touched on wasÂ Twitter Bootstrap.
There are several ways you can use bootstrap in Visual Studio. If you are using Visual Studio 2008 or lower version, then you can download the bootstrap from Bootstrap Website and add it to your dot net web solution in Visual Studio.
If you are using Visual Studio 2010 or higher, thenÂ the best way is to install it from nuget.org. As NuGet is used as the recommended package manager for Visual studio, you can just install the bootstrap with a single comment in the Package Manager Console. To get the nuget package manager for Visual Studio 2010 or higher go here.
Once the nuget package manager is available in the Visual Studio 2010 or higher, you need to choose a bootstrap package from the nuget website. In the nuget website you can search for bootstrap and find several bootstrap packages in the nuget gallery. There are few plain bootstrap packages without any additional features. There are also several specialized bootstrap packages specifically for ASP.NET, MVC 3, MVC 4, date picker, etc.. You have to choose one of them based on your need.
Once you choose the bootstrap package you have to just open the Package Manager Console in Visual Studio and type in or copy paste the install commend seen in the NuGet package page.
If you don’t want to use any NuGetÂ package for your .net MVC web application, then you can download the bootstrap for its website and use it in your web solution. Here is a detailed article on using the bootstrap library files from http://getbootstrap.com/.
In the coming days I am planning to write more about installing Bootstrap NuGet package in Visual Studio 2010 or higher and how to use Bootstrap in .Net web applications.
See my other the articleÂ Twitter Bootstrap with ASP.NET MVC 4Â for step by step details on creating a MVC 4 website using Bootstrap as the user interface.
If you are looking for using Bootstrap straight from the bootstrap website, without using NuGet packages in MVC, then read the articleÂ Bootstrap with ASP.NET MVC 4 â€“ Step by Step â€“ Without NuGet Package.