title: Visual Studio + ReSharper treating some Razor statements as errors
body: <p>Current setup: Visual Studio 2015 Professional and ReSharper Ultimate 2017.2.2.</p>
  
  <p>I've started looking into ASP .NET MVC and I've found that ReSharper has been treating some Razor statements as errors. </p>
  
  <p>For example, this is the Login.cshtml file that is autogenerated in an MVC project with individual accounts authentication.</p>
  
  <p><a href="https://i.stack.imgur.com/ck1lk.png" rel="nofollow noreferrer">Razor lines with errors.</a></p>
  
  <p>The error for the line</p>
  
  <pre><code>@Html.LabelFor(m =&gt; m.Password, new { @class = "col-md-2 control-label" })
  </code></pre>
  
  <p>is</p>
  
  <blockquote>
    <p>The type arguments cannot be inferred from the usage. Try specifying the type arguments explicitly. </p>
  </blockquote>
  
  <p>Weirdly, only some lines are considered errors. The code compiles and runs fine, I'm able to use the registration/login system the project generated fine. Its getting annoying seeing '72 errors in 17 files' in the bottom right when nothing is actually wrong.</p>
  
  <p>Any ideas on how to remove these errors?</p>