469,282 Members | 1,706 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

'Copy to Output Directory" in VS 2008

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.
Sep 30 '08 #1
3 4406
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?

"David V" <da****@veeneman.comwrote in message
news:1e**********************************@2g2000hs n.googlegroups.com...
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.
Sep 30 '08 #2
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.
Oct 1 '08 #3
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.

"David V" <da****@veeneman.comwrote in message
news:d9**********************************@f36g2000 hsa.googlegroups.com...
>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.
Oct 1 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Nick Jacobson | last post: by
4 posts views Thread by hamacher | last post: by
27 posts views Thread by Shagy | last post: by
3 posts views Thread by Jess | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.