'Copy to Output Directory" in VS 2008

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.
 
F

Family Tree Mike

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?
 
D

David V

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.
 
F

Family Tree Mike

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top