In this article I will explain with an example, how to add System.Web.Optimization DLL reference in ASP.Net MVC project.
The System.Web.Optimization DLL reference is needed for creating Bundles and also using the Scripts.Render function in View.
 
 
Adding System.Web.Optimization DLL reference in ASP.Net MVC project
Following are the steps to install the System.Web.Optimization DLL from Nuget.
1. First step is to start the Package Manager Console window by clicking View menu then Other Windows and finally Package Manager Console.
Add System.Web.Optimization DLL reference in ASP.Net MVC project
 
2. In the Package Manager Console window, type the following command and press Enter key and the package will start installing.
Install-Package Microsoft.AspNet.Web.Optimization
Note: You can also get the latest DLL version and its command from Microsoft ASP.NET Web Optimization... 1.1.3<.
 
Add System.Web.Optimization DLL reference in ASP.Net MVC project
 
Once the package is installed, a success message will be displayed.
Add System.Web.Optimization DLL reference in ASP.Net MVC project