The latest version of RazorGenerator (1.6.3) produces ASPPARSE error when '@' character is used immediatelly after a tag name, for example in ASP.NET MVC [_WebGridRenderer.cshtml](http://aspnetwebstack.codeplex.com/SourceControl/latest#src/System.Web.Helpers/WebGrid/_WebGridRenderer.cshtml):
```
<thead>
<tr@CssClass(headerStyle)>
```
_... error ASPPARSE: Encountered end tag "thead" with no matching start tag. Are your start/end tags properly balanced?_
The error does not appear when RazorGenerator is not enabled.
Comments: Well, I was preparing a test solution and the list of steps required to reproduce the issue, but it did not appear (!?). There are warnings about unrecognized tr@cssclass tags, but no error. I can attach the solution, if you are interested. There is something different between this new and my old solution, which I have to find out. I guess you can close this issue. Thank you for the support. I am leaving the text, for the amusement :) - - - The generated code is correct, like in your "Razor v1" output example. I had to modify the original ASP.NET MVC files to solve problems with RazorGenerator extension and duplicate class names - what I need is to have a copy of the ASP.NET MVC WebGrid class, which I can then modify (unfortunately, the methods I need to change are not virtual, hence the copy). The steps: 1. Install RazorGenerator 1.6.3 from http://visualstudiogallery.msdn.microsoft.com/1f6ec6ff-e89b-4c47-8e79-d2d68df894ec, 2. Create a new ASP.NET Web Application for .NET MF 4.5.1, with MVC 3. Clone [ASP.NET MVC](https://aspnetwebstack.codeplex.com/) repository, copy src\System.Web.Helpers\WebGrid into the solution Controls\AspNet\WebGrid, exclude WebGridColumn.cs and WebGridPagerModes.cs, 4. Fix compiler errors 4.1 Rename public classes WebGrid -> MvcWebGrid, WebGridRow -> MvcWebGridRow 4.2 Create static classes with resource strings 4.3 Add DynamicHelper.cs copy 5. Fix RazorGenerator 5.1 Rename _WebGridRenderer.cshtml custom tool from RazorHelperGenerator to RazorGenerator (resolves Warning: Cannot find custom tool 'RazorHelperGenerator' on this system), 5.2 Add `@* Generator: MvcHelper ClassSuffix: _ *@` directive to have helper class with static methods generated and ensure the original WebGridRenderer is not used (the project references System.Web.Helpers assembly), 6. Rebuild the solution Now, there are only warnings about unknown element `tr@cssclass(...)` and matching tags that surround those tr@cssclass, but no error. In my original solution, there is also "Encountered end tag "thead" ..." error. Note: The generated code contains #line pragmas, while the original ASP.NET MVC does not - adding `DisableLinePragmas: true` generates almost exactly the same code, the difference is the class is not derived from HelperPage.
```
<thead>
<tr@CssClass(headerStyle)>
```
_... error ASPPARSE: Encountered end tag "thead" with no matching start tag. Are your start/end tags properly balanced?_
The error does not appear when RazorGenerator is not enabled.
Comments: Well, I was preparing a test solution and the list of steps required to reproduce the issue, but it did not appear (!?). There are warnings about unrecognized tr@cssclass tags, but no error. I can attach the solution, if you are interested. There is something different between this new and my old solution, which I have to find out. I guess you can close this issue. Thank you for the support. I am leaving the text, for the amusement :) - - - The generated code is correct, like in your "Razor v1" output example. I had to modify the original ASP.NET MVC files to solve problems with RazorGenerator extension and duplicate class names - what I need is to have a copy of the ASP.NET MVC WebGrid class, which I can then modify (unfortunately, the methods I need to change are not virtual, hence the copy). The steps: 1. Install RazorGenerator 1.6.3 from http://visualstudiogallery.msdn.microsoft.com/1f6ec6ff-e89b-4c47-8e79-d2d68df894ec, 2. Create a new ASP.NET Web Application for .NET MF 4.5.1, with MVC 3. Clone [ASP.NET MVC](https://aspnetwebstack.codeplex.com/) repository, copy src\System.Web.Helpers\WebGrid into the solution Controls\AspNet\WebGrid, exclude WebGridColumn.cs and WebGridPagerModes.cs, 4. Fix compiler errors 4.1 Rename public classes WebGrid -> MvcWebGrid, WebGridRow -> MvcWebGridRow 4.2 Create static classes with resource strings 4.3 Add DynamicHelper.cs copy 5. Fix RazorGenerator 5.1 Rename _WebGridRenderer.cshtml custom tool from RazorHelperGenerator to RazorGenerator (resolves Warning: Cannot find custom tool 'RazorHelperGenerator' on this system), 5.2 Add `@* Generator: MvcHelper ClassSuffix: _ *@` directive to have helper class with static methods generated and ensure the original WebGridRenderer is not used (the project references System.Web.Helpers assembly), 6. Rebuild the solution Now, there are only warnings about unknown element `tr@cssclass(...)` and matching tags that surround those tr@cssclass, but no error. In my original solution, there is also "Encountered end tag "thead" ..." error. Note: The generated code contains #line pragmas, while the original ASP.NET MVC does not - adding `DisableLinePragmas: true` generates almost exactly the same code, the difference is the class is not derived from HelperPage.