title: Register RazorViewEngine only for C# (only for .cshtml files)
body: <p>I am only using <code>RazorViewEngine</code> on one of my ASP.NET MVC 3 applications and I cleared Web Forms view engine out with following code inside <code>Application_Start</code> method of my <strong>Global.asax.cs</strong> file</p>
  
  <pre><code>ViewEngines.Engines.Clear();
  ViewEngines.Engines.Add(new RazorViewEngine());
  </code></pre>
  
  <p>I decided to see something solid so that I could be satisfied with this two-line-code-effort and I try to render a partial view which does not exist and I got this result : </p>
  
  <blockquote>
    <p>The partial view '_ResortMapPartialView' was not found or no view
    engine supports the searched locations. The following locations were
    searched:
    ~/Areas/Accommodation/Views/resort/_ResortMapPartialView.cshtml
    ~/Areas/Accommodation/Views/resort/_ResortMapPartialView.vbhtml
    ~/Areas/Accommodation/Views/Shared/_ResortMapPartialView.cshtml
    ~/Areas/Accommodation/Views/Shared/_ResortMapPartialView.vbhtml
    ~/Views/resort/_ResortMapPartialView.cshtml
    ~/Views/resort/_ResortMapPartialView.vbhtml
    ~/Views/Shared/_ResortMapPartialView.cshtml
    ~/Views/Shared/_ResortMapPartialView.vbhtml</p>
  </blockquote>
  
  <p>It looks a little better. Now it looks for less items than before. But still the files with <code>.vbhtml</code> extensions are making me unconformable. </p>
  
  <p>The question is that : How can we get rid of them? </p>