ASP.Net Share Master Pages, Js, Css for multiple applications

Ok, so I have several ASP.Net Mvc web applications that I would like to share a common main page, some css and js files in ...

I tried to create a common repository for files, and then in my studio projects using the function "Add existing ... as a link ...", but it does not seem to work ...

When I try and debug a project, I get an error when the main page is not found. This is because it does not physically exist in the place where I created the link ...

Has anyone got this to work, or maybe another suggestion on how to share these types of shared files ...

Thanks!..

+1
source share
3 answers

If you use a version control system such as SVN, you can save your main page in one repository and reference this repository with svn: externals property in your project repositories.

Then you can expand the main page if each project requires a modification that the other has not done, while maintaining the ability to merge changes made in the original.

+1
source

You cannot share the main pages, but you can share static resources such as CSS files and Javascripts, but you do not add them to your web application. You simply reference them in your aspx files and specify their URL.

Where are these files located? anywhere on disk or in a folder of some other application?

0
source

I do not think this is a good idea, because if you have a control source, you may need to check the source code of the application (including css and js files and master pages) so that someone else can run on another machine (change or update) no problem

0
source

All Articles