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

  • SEARCH
  • Home
  • 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 6847217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:43:07+00:00 2026-05-27T00:43:07+00:00

I was adding a folder to my visual studio 2008 project, by dragging and

  • 0

I was adding a folder to my visual studio 2008 project, by dragging and dropping from explorer. I want to change the ‘copy to output directory’ property of the entire files in that folder to ‘Copy Always’.

The problem is that the folder contains many subfolders, and so does the subfolders..so it was a little bit annoying not to be able to block all files and change the property in one step.

Is there a way to change the property of all the files in a folder containing many subfolders in one procedure?

Many Thanks…

  • 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-27T00:43:07+00:00Added an answer on May 27, 2026 at 12:43 am

    If you really have a lot of sub-folder & files then you can try these steps

    1. Create am empty project, add your folder to the project
    2. Save the project and open the project file in a good text editor
    3. This project file will now have all files for which you want to change the build action
    4. Remove all other tags other than content tags (these refer to your files)
    5. Do simple find & replace to replace //>/n (slash & angled bracket followed by new line) with ">/n<CopyToOutputDirectory>Always<//CopyToOutputDirectory>/n<//Content>". (note that I use notepad++ and hence have escaped slashes). You can always leave out new lines if your tool doesn’t support it. You may even try regex find & replace if your tool supports it.
    6. You may have to adjust file path (if your new project has different folder hierarchy) – this can be achieved by find & replace Include=".
    7. Paste these content nodes into the project file that you want to modify
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made an application project in Visual Studio 2008 C#, SQL Server from
We have a setup project that currently adds Project Output's from different visual studio
For some reason, Visual Studio 2008 keeps adding three folders to my solution folder.
Is there a way to have an empty Project in Visual Studio 2008 or
Env: Visual Studio 2008, Shared COM Excel Addin, RibbonX, I use Setup project created
I have a VB.NET project in Visual Studio 2008 that I created a specialized
When I'm adding an image to a .resx resources file in Visual Studio 2008
I've enabled directory listing of a folder under public_html, by adding: Options +Indexes in
I am running Visual Studio 2010. I have a XSD schema and want to
I am working on the Visual studio 2010. want to create a dll which

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.