articles

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

Add reference of Microsoft.Web.Helpers in MVC 4

AVADHESH PATEL21858 22-Apr-2013

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


Updated 10-Dec-2019
Avadhesh Kumar Patel District Project Manager - Aligarh 14 months work experience in Panchayati Raj Department Sector as District Project Manager & 12 months work experience in IT Sector as Software Engineer. :-)

Leave Comment

Comments

Liked By