Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. public class SettingsViewEngine : RazorViewEngine
  2. {
  3. public SettingsViewEngine()
  4. {
  5. //if I commit this nothing changes
  6. MasterLocationFormats = new[]
  7. {
  8. "~/bin/Views/{1}/{0}.cshtml",
  9. "~/bin/Views/Shared/{0}.cshtml"
  10. };
  11.  
  12. ViewLocationFormats = new[]
  13. {
  14. "~/bin/Views/{1}/{0}.cshtml", //if I commit this line it starts look at
  15. //at shared folder.Looks like only first
  16. //line of ViewLocationFormats array used always.
  17. "~/bin/Views/Shared/{0}.cshtml"
  18. };
  19. }
  20. }
  21.  
  22. "~/bin/Views/MyLayout.cshtml"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement