Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use TagBuilder in a Class Library project?

I am trying to use TagBuilder in a Class Library project. I have added references to System.Web and System.Web.Mvc(v3), but in my class file the TagBuilder class is not visible.

How can I use TagBuilder in a Class Library project?

like image 916
BrunoLM Avatar asked Jan 29 '11 20:01

BrunoLM


2 Answers

In Asp.Net MVC 3, it is located in:

c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\Assemblies\System.Web.WebPages.dll

In Asp.Net MVC 4, it is located in:

c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v2.0\Assemblies\System.Web.WebPages.dll

So make sure you have a reference to that dll.

like image 74
Kirk Woll Avatar answered Nov 19 '22 20:11

Kirk Woll


You also need a reference to System.Web.WebPages

like image 11
user595970 Avatar answered Nov 19 '22 22:11

user595970