title: Why razor views in WebView App (Android) Project won't recognize the Model?
body: <p>The project is created with Xamarin for Visual Studio 2013. At first, .cshtml file won't recognize @model directive. It seems that razor engine was not configured correctly. Then I configure web.config in views folder of my project, so that the version of assemblies match the exact version of assemblies I've installed.</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
    &lt;configSections&gt;
      &lt;sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"&gt;
        &lt;section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /&gt;
        &lt;section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /&gt;
      &lt;/sectionGroup&gt;
    &lt;/configSections&gt;
  
    &lt;system.web.webPages.razor&gt;
      &lt;host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt;
      &lt;pages pageBaseType="System.Web.Mvc.WebViewPage"&gt;
        &lt;namespaces&gt;
          &lt;add namespace="Ototim.Mobile.Droid" /&gt;
        &lt;/namespaces&gt;
      &lt;/pages&gt;
    &lt;/system.web.webPages.razor&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>And it did work, @model directive can be recognized. But then, when I call Model Property in .cshtml file, errors show up</p>
  
  <blockquote>
    <p>The name 'Model' does not exist in the current context</p>
  </blockquote>
  
  <p>on every .cshtml file that contain model even I have declared the type of model using @model directive and the generated code behind does contain Model property. </p>
  
  <pre><code>@using Ototim.Mobile.Droid.Models
  @model BoyKms
  </code></pre>
  
  <p>And generated code behind.</p>
  
  <pre><code>[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorTemplatePreprocessor", "3.11.0.0")]
      public partial class RazorView : RazorViewBase
      {
  
      #line hidden
  
      #line 2 "RazorView.cshtml"
      public BoyKms Model { get; set; }
  
      #line default
      #line hidden
      //and so on...
  </code></pre>
  
  <p>Deploying project still work and it shows no error at runtime, but when the project become more complex, I think it will be much easier to code if Intellisense can recognize the model.</p>