'Copy to Output Directory" in VS 2008

  • Thread starter Thread starter David V
  • Start date Start date
D

David V

I'm having trouble copying DLLs from a folder in my project to the
project's output directory.

I have copied seven SQL CE DLLs (the SqlCe*.dll set) to a Libs folder
in my project. The DLLs VS 2008 file properties are set as follows:

Build Action: Content
Copy to Output Directory: Always

When I compile, the DLLs don't copy to the output directory.

As a workaround, I've added a post-build event to force the copy. But
I still want to figure out why the 'Copy to Output Directory' property
isn't working. Any thoughts? Thanks.
 
Well, for me it did copy the dll to a 'lib' folder in the output folder.
Did you see such a folder in the output directory?
 
I was able to get it to do that. But, since I need the file in the
output root folder, I guess I'm stuck with the post-build command. I
supposew it's another strange Microsoft bug. Thanks for looking at it.
 
Or, you could just leave it at the top level of the source directory. It
appears to believe you want to place it in a path relative to the source
folder in the output.
 
Back
Top