I went behind VS2010’s back and deleted some images from an image folder that’s referenced by a web project as Content. In the solution navigator, these files now show up with the yellow warning icon that the file cannot be found. Refreshing the folder has no effect. Is there a way to tell VS2010 to automatically synch a folder? The VS Website project does this by default.
Share
In Visual Studio go to the missing files, select them and press
del(or right click and selectDelete).Save the project and you are good to go.
As you noted, this is not automatic – the project file needs to be synced up with the actual filesystem. This does not happen with website “projects” because there is no project file.