I have created an ASP.NET Server Control and have it working just fine. However, I have decided that I now need to embed many, many images into the DLL rather than having them be required in local paths wherever the DLL is used.
To my horror I just discovered that doing this is a manual job where I have to go into hundreds of folders and subfolders and specify that I want those files to be embedded. I then have to change all of my markup to read these images and files via the WebResourceAttribute which is a chore to say the least.
My 2 questions:
- Is there a quick way to embed hundreds of folders and subfolders worth of files with a few clicks?
- If so, is there a way to simply reference these files as if they were on the file system? In other words, can I do a global search and replace for something like this:
- Find:
- script type="text/javascript" src="folder/
- Replace With:
- script type="text/javascript" src="{WebResourceStuff}/
- Find: