Quantcast
Channel: How to automatically copy embedded resources from class library that is referenced by another class library? - Stack Overflow
Viewing all articles
Browse latest Browse all 2

How to automatically copy embedded resources from class library that is referenced by another class library?

$
0
0

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?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>