What is the best way to share MasterPages across projects

Shawn Miller picture Shawn Miller · Aug 27, 2008 · Viewed 16.6k times · Source

Suppose you have two seperate ASP.NET Web Application projects that both need to use a common MasterPage.

What's the best way to share the MasterPage across projects without having to duplicate code? Preferably without having to resort to source control or file system hacks.

Answer

JkenshinN picture JkenshinN · Dec 17, 2008

I have trying to accomplish the same thing. I look into a couple of solutions but I think using a virtual directory is probably the best way to share master pages.

Here are a couple sources that you can look at.

The third bullets near the end the article tells you of possible ways you can share Masterpages also.