Controller in one project, view in another

Imported from the CodePlex archive for reference purposes. Support for MvcCodeRouting has ended.

Commented on
Hi Max,

I have been successful in putting a controller/view combination in a shared library (project 2) and then routing to it from a web app (project 1).

Now I am adding a 3rd project to my solution (as a plug-in style feature set). Project 1 is still the main web app, but I have shared logic I want the controller from library project 2 to handle. After handling the logic, I want the output to come from a view stored in project 3.

Is this possible with your framework?

Thanks,
Wade
Commented on link
Perhaps it's possible if both project 2 and project 3 use the same base route. But I wouldn't recommend even trying it. Best option is to copy the view from project 3 to the host app.
Commented on link
BTW, you can always do View("~/full/path/to/view.cshtml"), that should work.