Add reference of Microsoft.Web.Helpers in MVC 4
Microsoft.Web.Helpers package contains web helpers to easily add functionality to your site such as Captcha validation, Twitter profile and search boxes, Gravatars, Video, Bing search, site analytics or themes.
In this article I tell you how to add reference of Microsoft.Web.Helpers in your existing application.
When you open MVC 4 Application with “Internet Application” option then Microsoft.Web.Helpers dll by default added in your application. But, if you open application with “Empty” option then “Are you missing an assembly reference?” Error message come when you use Microsoft.Web.Helpers namespace.
Step 1: Open Package Manager Console from View menu, as below image (Figure 1).
Step 2: Package Manager Console command prompt will be display at bottom of Visual Studio as below image (Figure 2).
Step 3: Paste below line of code in Package Manager Console prompt and press enter button as below image (Figure 3).
PM> Install-Package microsoft-web-helpers
Wait few minutes, it takes time to installation. After successfully installation PM> character display in Package Manager Console prompt then go to your solution explorer and open References tag. Here you see Microsoft.Web.Helpers are added as below image (Figure 4).
See more articles to added references: