2011-08-27 44 views
0

我想在ASP .NET MVC 3項目中編譯我的視圖爲DLL, - 沒關係,但是當我註冊DLL時,我在這裏有問題:這是什麼 - BoC.Web.Mvc.PrecompiledViews.ApplicationPartRegistry

  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); 

我不明白,那是什麼 - BoC?

來源:http://mikakolari.fi/2011/02/aspnetmvc-3-plugin-architecture-with-embedded-razor-views/


解決方案: 當U編譯您的看法,u有2個文件在斌/調試:

  • Commons.Web.Mvc.PrecompiledViews.dll
  • Crash.PageRating.dll

因此,BoC.Web.Mvc.PrecompiledViews.ApplicationPartRegistry在Commons.Web.Mvc.PrecompiledViews.dll你必須添加到你的項目。

回答