Alex Rivera | Logout

Visual Studio - sending "content" files to the output directory instead of a subdirectory?

Asked 2010-06-28T17:18:36.400
20

Possible Duplicate:
Copy to Output Directory copies folder structure but only want to copy files

I'm using VS2010. I've got a C# project that uses a few native DLLs. In my source tree, I have these native files stored in a "DLLs" directory underneath the main solution directory. In my C# project, I have the "DLLs" folder listed with each of the DLLs inside it. Each DLL is set to build action "Content" and "Copy to Output" set to "Always".

Unfortunately, because these files are in a subdirectory, VS seems to think they should be deployed that way. Instead of being deployed to \bin\Debug, they're being deployed to \bin\Debug\DLLs. Is there any straightforward way to convince VS to deploy them directly to \bin\Debug, or will I have to do some kind of custom build action to copy them into place?

Edit
Report

1 Answer

0

I think you need the build action. You don't have to create a whole build script, though -- under the "Build Events" tab of the project properties you can specify what to do in the "Post-build event command line."

answered 2010-06-28T17:32:14.120

Your Answer