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?
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.
You also need a reference to System.Web.WebPages
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With