mccalltd / AttributeRouting

Define your routes using attributes on actions in ASP.NET MVC and Web API.
http://mccalltd.github.io/AttributeRouting/
MIT License
416 stars 89 forks source link

Views are not found in release mode. #212

Closed jmoax closed 11 years ago

jmoax commented 11 years ago

I have my Views path using the same structure as my Areas, for instance Area:

Main/Home/Detail/

I have 3 areas then, Main, Home and Detail, so I have placed my views under this folder ->

{Root}/Main/Home/Detail/Views

So when I run the app in debug mode, the framework is able to find my views, but when I use the release mode, then the views are not found since it is looking under the "Default" folders (~/Views/). Is there a setting or something in this AttributeRouting lib to kind of specify or register a new path to find the views?

Thanks!

mccalltd commented 11 years ago

This isn't something AR can help with. You need to write a custom view resolver. Cannot remember the base type you need to use or register off the top of my head. But should be easy enough to find with Google.