Hi Stephen, I am working on a C# project using VS2008 and have COM objects. I have added the DLL's as references and they are being copied to the Unit Test project. If you slick the DLL under references and press F4 you will see the references properties. For my DLL's Copy Local is set to True. I hope this helps.
Regards, Michael O'Dea-Jones -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Stephen Price Sent: Tuesday, 3 August 2010 11:36 AM To: ozDotNet Subject: Native code references hey all, I find myself delving into the world of COM and Native code (ie C++) and calling it from managed code. Something I've been tripped up by is missing dll's. I was wondering if there's an easy way I've missed that someone could share. I'm writing some unit tests for code that wraps calls to these native dll's but I've found adding references to the supplied C# wrapper classes does not automagically copy the required dll's along with it. I've had to resort to Post build copies of the required native dll's and their dependencies, which once I've done works fine. Is that the best practice, or have i missed something? I've managed to avoid this until now (and to be honest am having fun with it. I feel like a REAL programmer. lol) cheers, Stephen
