Here is my project structure:
- Web Application Project
- Has project reference to Class Library 1 in same Visual Studio 2008 solution
- Class Library 1
- Has project reference to Class Library 2 in same solution
- Class Library 2
- Has a file marked as Build Action: Embedded Resource and Copy to Output Directory: Copy Always
Here is my problem:
When I build my Web Application Project, the embedded resource in Class Library 2 is NOT copied to the bin directory of the Web Application Project as it should. If I add a project reference directly from my Web Application Project to Class Library 2, the file IS copied to the bin directory.
How can I get the embedded resource file to copy without having to add the unnecessary reference?