Home > DeveloperSection > Articles > Add reference of Microsoft.Web.Helpers in MVC 4

Add reference of Microsoft.Web.Helpers in MVC 4


ASP.NET MVC ASP.NET MVC 
Ratings:
0 Comment(s)
 12780  View(s)
Rate this:

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.

Note:

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).

Figure 1:

Add reference of Microsoft.Web.Helpers in MVC 4

Step 2: Package Manager Console command prompt will be display at bottom of Visual Studio as below image (Figure 2).

Figure 2:

Add reference of Microsoft.Web.Helpers in MVC 4

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).

Figure 4:

Add reference of Microsoft.Web.Helpers in MVC 4

See more articles to added references:

https://www.mindstick.com/Articles/1131/add-reference-of-system-web-optimization-in-mvc-4


Don't want to miss updates? Please click the below button!

Follow MindStick