How To Bundle And Minify Files With Visual Studio

In order to improve request load time, Bundling and minification techniques were introduced in MVC 4. In this article, we will learn how to bundle and minify files with Visual Studio

Bundler & Minifier is a Visual Studio tool to add support for bundling and minifying CSS, HTML, and JS files in any project.

Install Bundler & Minifier, go to the link given below to install it for free.

Bundler & Minifier


Minification technique optimizes CSS or script file size by removing unnecessary comments and white space and shortening variable names to one character.


Minify any CSS, HTML, or JS file by right-clicking it in Solution Explorer. That will create a [filename].min.[extension] and nest it under the original file. When the original file is modified, a new min file will be produced instantly.

This situation also arises when you try to download the .exe or .apk file android casino apps on the site and install it on your smartphone.



Bundling allows us to load the bunch of static files from the server into an HTTP request.


Select 2 or more files of the same type in Solution Explorer to create a bundle. Any changes being made to the source files will instantly produce updated bundle file output.


Please give your valuable feedback and if you have any questions or issues about this article, please let me know.

Also, check How To Calculate Code Execution Time In C#

1 Comment

  1. Saravanan Kanagaraj

    Hi Yasin,

    Thanks for the details. Can you please tell me how to achieve the Bundling and Minification using VS code?

    Saravanan K


Submit a Comment

Your email address will not be published. Required fields are marked *


Select Categories