title: Razor View Engine Quirks in VB.NET
body: <p>I just downloaded the MVC 3.0 RC and I'm excited to start using it, especially the Razor view engine. However, due to a few stick in the mud type people here, we are stuck using VB.NET instead of C#.</p>
  
  <p>When I started trying it out, I noticed some quirks. If you are creating a Razor view using CSHTML, you can write code like this:</p>
  
  <pre><code>@foreach(string genreName in Model.Genres)
  {
      &lt;li&gt;@genreName&lt;/li&gt;
  }
  </code></pre>
  
  <p>Razor will automatically detect that the <code>&lt;li&gt;</code> text is an HTML tag and will switch out of "code mode". With a VB.NET VBHTML file, this doesn't seem to be working. It's making me put the <code>@:</code> keyword in front  of each line like this:</p>
  
  <pre><code>@For Each genreName As String In Model.Genres
      @:&lt;li&gt;@genreName&lt;/li&gt;
  Next
  </code></pre>
  
  <p>If I don't have it there, I get a runtime error. Also, the <code>&lt;text&gt;&lt;/text&gt;</code> tags don't seem to work.</p>
  
  <p>Anybody know what's going on here or whether there's a workaround?</p>