I'm working on a project which we'll call Container. Container has a bunch of EmbeddedResources. The original files for these EmbeddedResources are another project which we'll call FileProject.
FileProject is a project that is currently being worked on by a group of different developers and is always changing, so I have my EmbeddedResource files linked - so that whenever the original project changes and I do a rebuild of my project, it picks up the changes.
This setup catches whenever a file changes, but it doesn't catch whenever a new file is added or removed from the project. Is there a way to make EmbeddedResources out of an entire folder structure in Visual Studio to catch file removal and additions?
解决方案
Edit the project file for Container in a text editor and find the elements that link to the files in FileProject:
Copy.bmp
Paste.bmp
Delete all of these elements and replace them with a single element that has a suitable wildcard:
Now if you add Cut.bmp to FileProject, it will also show up in Container.