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.
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
Once the package is installed, a success message will be displayed.