Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
- All the projects are in asp.net web forms using donet framework 4.7.2.

- I have 40 over projects with the same project configurations ( All are web forms and framework is 4.7.2).

- I have created a folder named 'Assets' and kept all my CSS and JS files including MasterPage(Layout.Master).

- I would like to keep 'Assets' folder (somewhere?) to be accessed by all of the other 40 projects.

- The intent of this is to update any new changes for just one folder and the changes will take effect for all other projects. On top of that, I'd like to avoid creating duplicate Assets folder for all the other 40 projects.

What I have tried:

- I would like to keep 'Assets' folder (somewhere?) to be accessed by all of the other 40 projects.

- The intent of this is to update any new changes for just one folder and the changes will take effect for all other projects. On top of that, I'd like to avoid creating duplicate Assets folder for all the other 40 projects.
Posted
Updated 23-Feb-23 19:26pm

You can put the actual folder anywhere, a reasonable place would be a folder above all the project folders. You can then add references to it in each project that needs it; something like:
Dev 
  +--Assets
  +--Project1 -- include ..\Assets\...
  +--Project2
...
 
Share this answer
 
Comments
Koppula Ravi 21-Feb-23 22:44pm    
Thanks, Richard. This method I have tried however it won't be useful.

When we reference the files are inaccessible.
Richard MacCutchan 22-Feb-23 3:37am    
Then you must be doing something wrong. This is a well used system for including common files, something I have used in a number of different operating systems.
I guess you need 1 project containing assets, that method is like CDN method.

And then the project calling .js .css .jpg and all things using that project..

i.e. http://project-assets/css/site.css

At iis you should filter that extensions is allowed.. if you attach assets project in IIS
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900