Common files in output directories in a C# program
        Posted  
        
            by Net Citizen
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Net Citizen
        
        
        
        Published on 2010-02-02T18:02:34Z
        Indexed on 
            2010/03/25
            20:43 UTC
        
        
        Read the original article
        Hit count: 210
        
My VS2008 solution has the following setup.
- Program1
- Program2
- Common.dll (used and referenced by both Program1 and Program2)
In debug mode I like to set my output directory to Program Files\Productname, because some code will get the exe path for various reasons.
My problem is that Program1 when compiled, will give an error that it could not copy Common.dll if Program2 is started. And vise versa.
The annoyance here is that I don't even make changes to Common.dll that often, but 100% of the time it will try to copy it, not only when there are changes. I end up having to close all programs, and then build and then start them.
So my question is, how can I only have VS2008 copy the Common.dll if there are changes inside the Common.dll project?
© Stack Overflow or respective owner