I'm working with Visual Studio 2008. I've got a VS Solution with a
few Class Library projects and a few Application projects. The
projects are all for .NET Compact Framework 2.0.
One of the libraries displays some HTML information in a WebBrowser
control. It includes some images as part of its content, which it
displays in a WebBrowser control along with some other information.
They are set to "BuildAction=Content, Copy to Output Directory=Copy if
The problem I'm having is that when an Application project references
one of these Class Library projects, the DLL is copied to the output
directory, but not the images. As a result, they display as broken
images in the WebBrowser control.
Everything works fine if I manually add these images to my Application
project and set them to be copied to the output directory, but this is
annoying to maintain and error-prone, since if I add or remove an
image file from one class library I have to remember to do the same in
every Application that references that library.
Are these content files supposed to be copied to the output directory
automatically? If not, is there some way to make this happen?