Have you tried setting the build action to None?
Ikaso
2010-02-09 16:02:32
It seems to work also in Visual Studio 2008 Team System - must be Expression edition specific, so cannot repro...
OK, my original guess was not true - it is about XML file being in the referenced library. Can repro it now.
I think the most natural way would be to embed the XML as resource and then read it with GetManifestResourceStream()
. This way, the XML file would follow your dll as you reference it without copying it separately even if you reference the dll directly and not through project reference.
...or then you could use Pre-build event? (Project properties - Build Events):
copy $(ProjectDir)test.xml $(SolutiontDir)projectFolder\bin\debug\test.xml
I would think it will always run even if VS thinks no source files have changed. At least in full VS2008 this is the case - just tested.