Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 907585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:34:41+00:00 2026-05-15T16:34:41+00:00

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

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T16:34:42+00:00Added an answer on May 15, 2026 at 4:34 pm

    This is because you’ve got them in a Folder in the solution. The pragmatic solution is to simply add them to the solution root, the actual location of the file doesn’t matter. That perhaps creates a wee bit of clutter in your Solution Explorer window. If that’s unacceptable then a pre-build event that uses xcopy /d is the workaround.

    xcopy /d "$(ProjectDir)DLLs\*.dll" "$(TargetDir)"

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How do you send email from a Java app using Gmail? How
Possible Duplicate: Is there a difference in C++ between copy initialization and assignment initialization?
Possible Duplicate: How to copy char *str to char c[] in C? char *token
Possible Duplicate: How disable Copy, Cut, Select, Select All in UITextView I have some
Possible Duplicate: question about copy constructor if I have this snippet of the code
Possible Duplicate: How to copy a file to another path? hi, how to copy
Possible Duplicate: How to copy part of an array to another array in C#?
Possible Duplicate: How to copy an object in objective c I have a very
Possible Duplicate: Ordering in Python (2.4) dictionary I tried to copy a dict to
Possible Duplicate: Do methods which return Reference Types return references or cloned copy? A

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.