I have two ASP.NET MVC 4 websites in a Visual Studio Solution.
I have a custom EditorTemplate in one of the websites and I want to reuse the same template in the other website. I tried to add this template as a link from the first website.
But when I launch the second website, my custom editor template is not rendered. When I open the template, I cannot even set a breakpoint there, it seems, Visual Studio does not see this template as part of the current MVC project.
As soon as I remove the linked template and add a copy of the actual template file, the template starts working.
Does it mean that for some weird reason ASP.NET MVC projects do not support linked cshtml files from another projects? Or maybe I am doing something wrong?