V
V
Vasily2013-08-09 10:47:36
ASP.NET
Vasily, 2013-08-09 10:47:36

One Layout for multiple ASP.NET MVC applications?

Good afternoon, hackers.
There are several ASP.NET MVC (Razor) sites that use one MasterPage (Layout).
At the moment, each project has its own Layout with the same content, and in order to make changes in it, you have to edit them all, which is very inconvenient - you can forget to correct some.
How can I make sure that there is one Layout file that can be used in several applications?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mayorovp, 2013-08-10
@vassav

You can try to dig in the direction of VirtualPathProvider or BuildEngine - one of them can be trained to find this file, wherever it is.

U
UZER2006, 2013-08-09
@UZER2006

As an option.
Put this file somewhere and instead of adding copies, link it to projects.
support.microsoft.com/kb/306234
When adding an existing file, in the dialog on the Add button there is a drop-down list with the Add As Link item.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question