Search code examples
asp.net-mvcasp.net-mvc-3forums

Reuse ASP.NET MVC Views & Controller


We are having the two different website running for different products (both sites have different MVC projects) . I would like to create the forum software using ASP.NET MVC.

Can any one help how can i reuse Forum (Views & Controller) in two different sites ?.


Solution

  • Check this out: http://www.chrisvandesteeg.nl/2010/11/22/embedding-pre-compiled-razor-views-in-your-dll/ You should be able to reuse assemblies and create relative paths.