After using Razor generator, MVC cannot find views in customized location if they are from a library.
For example:
public ActionResult Index()
{
// this works perfect
// return View("~/Views/CustomizedLocation/foo/baz.cshtml");
// this does not work
return View("~/Views/CustomizedLocation/foo/bar.cshtml");
}
See sample project:
- "bar.cshtml" is from a lib, whereas "baz.cshtml" is in the web app itself.
- I do NOT want to register "CustomizedLocation" in the view finder for many reasons. I only want to pick it up when needed.
Should be a simple problem but I could not find any existing discussions. Sorry if dup.
For example:
public ActionResult Index()
{
// this works perfect
// return View("~/Views/CustomizedLocation/foo/baz.cshtml");
// this does not work
return View("~/Views/CustomizedLocation/foo/bar.cshtml");
}
See sample project:
- "bar.cshtml" is from a lib, whereas "baz.cshtml" is in the web app itself.
- I do NOT want to register "CustomizedLocation" in the view finder for many reasons. I only want to pick it up when needed.
Should be a simple problem but I could not find any existing discussions. Sorry if dup.