Unable to use TagBuilder
Hi,
I get this message "The type or namespace name 'TagBuilder' could not be found (press F4 to add a using directive or assembly reference)" but I have added MVC assembly and its namespace. What's wrong ?
Sam
I get this message "The type or namespace name 'TagBuilder' could not be found (press F4 to add a using directive or assembly reference)" but I have added MVC assembly and its namespace. What's wrong ?
void Main()
{
var spanTag = new TagBuilder("span");
spanTag.SetInnerText("Texte à l'intérieur de la balise span");
string resultSpan = spanTag.ToString(TagRenderMode.Normal) + Environment.NewLine;
spanTag.Dump();
}
Sam
Comments
The type or namespace name 'TagBuilder' could not be found (press F4 to add a using directive or assembly reference).
http://stackoverflow.com/questions/4264763/tagbuilder-gone-from-mvc-3-beta-to-rc