1

Okay, so I have a couple of ASP.Net Mvc web applications that I would like to share a common master page, some css and js files across...

I tried creating a common repository for the files and then in my studio projects using the Add Existing... As Link... feature but, this doesn't appear to work...

When I try and debug the project I get an error stating the master page cannot be found. Which is because it doesn't physically exist in the location where I created the link...

Has anyone gotten this to work or perhaps have another suggestion on how to share these types of common files...

Thanks..!

2
  • why would you do this ? what is the point ? Commented Sep 3, 2009 at 18:50
  • 1
    So that I could share a common look across various applications... Commented Sep 3, 2009 at 18:55

3 Answers 3

1

If you're using a source control system like SVN, you could keep your master page in one repository and reference that repository with a svn:externals property in your project repositories.

You could then branch the master page if each project required a modification that the other did not, while still maintaining the ability to merge changes made in the original.

Sign up to request clarification or add additional context in comments.

Comments

0

You won't be able to share master pages, but it's possible to share static resources like CSS files and Javascripts, but you wouldn't add them to your web application. You'd just reference them in your aspx files and provide their URL.

Where do these files reside? anywhere on the disc or in a folder of some other application?

1 Comment

Why couldn't I do this with a master page..? The files reside on the disk in a folder...
0

i don't think it is a good idea because if you have a source control you might need to check in the application source code (including css and js files and masterpages) so someone else on an other machine can run (modify or update) it without problems

1 Comment

so if you have multiple sites (say 3 sites) that share common css and javascript, we'd have 3 copies of common css & javascript across the 3 sites?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.