title: What is this- BoC.Web.Mvc.PrecompiledViews.ApplicationPartRegistry
body: <p>I'm trying to compile in ASP .NET MVC 3 project my Views to dll,- that's ok, but when i register dlls, i have problem here:</p>
  
  <pre><code>            var assembly = Assembly.LoadFrom(dll.FullName);
              // register compiled razor views
              // e.g. 'settings.cshtml' is registered as '~/extensions/plugins/rating/settings.cshtml'
              BoC.Web.Mvc.PrecompiledViews.ApplicationPartRegistry.Register(assembly, pluginDir);
  </code></pre>
  
  <p>I can't understand, what's that- BoC?</p>
  
  <p>Source: <a href="http://mikakolari.fi/2011/02/aspnetmvc-3-plugin-architecture-with-embedded-razor-views/" rel="nofollow">http://mikakolari.fi/2011/02/aspnetmvc-3-plugin-architecture-with-embedded-razor-views/</a> </p>
  
  <hr>
  
  <p><strong>Solution</strong>:
  When u compile your Views, u have 2 files in bin/Debug:</p>
  
  <ul>
  <li>Commons.Web.Mvc.PrecompiledViews.dll </li>
  <li>Crash.PageRating.dll</li>
  </ul>
  
  <p>So, BoC.Web.Mvc.PrecompiledViews.ApplicationPartRegistry is in <strong>Commons.Web.Mvc.PrecompiledViews.dll</strong> which u have to Add to your project.</p>