How to add compiled views' namespace to search location for shared views?

Dec 23, 2012 at 4:42 PM
Edited Dec 23, 2012 at 4:43 PM

Hi, I have view compiled in a Common assembly. When referenced from an MVC3 project, if I was to do:

@Html.EditorFor(m => m.SomethingThatUsesACommonEditorTemplate)

MVC doesn't find that view in my Common assembly (My.Common.Mvc.Views.Shared.EditorTemplates namespace).

How to I register My.Common.Mvc.Views.Shared to map to MVC's idea of "Shared" views?

I hope that makes sense and I apologize if this is answered already, I didn't find the answer when looking.