This post is "as well" ... not an answer to the original question.
I just thought I would document it if in the future someone else has a bad booger having this problem ... and googling that the error message finds this question ... so this is a good place for this.
I create new icons (actually bitmap images) and add them on the fly to the Visual Studio 2008 project (i.e. Add ~ Existing Item). The IDE reports errors file ${filename} is not part of the project or its 'Build Action' property is not set to 'Resource' on my XAML page ... but my project builds and works fine ... so what gives? ??
I tried everything I could think of to get a visual studio, to update her view of the file system, but to no avail.
Well, I just confirmed that restarting Visual Studio "updates" its file system / assembly contents and output cache, which causes these annoying non-IDE errors to disappear. Therefore, I add a batch of icons, mark them as Resources ~ Copy, if they are newer, build, and then restart the IDE, and all this is good.
Greetings to all. Whale.
source share