Quantcast
Channel: RazorGenerator Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 525

Created Unassigned: Customized view location [156]

$
0
0
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.

Viewing all articles
Browse latest Browse all 525

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>