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 3635100
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:51:42+00:00 2026-05-19T00:51:42+00:00

I have a directory which contains externally maintained html help files for a Visual

  • 0

I have a directory which contains externally maintained html help files for a Visual Studio 2008 project. The directory could potentially contain an arbitrary number of files from build to build. I know how to add a directory and files to a project including them through the Solution Explorer as required output (content), but in this case I want to always automatically include the specified html directory, all of its subfolders, and all of its files without having to set properties each time a file is added.

I do not want to set the “Build Action” and “Copy to Output Directory” properties each time each time there are changes in the help files. Another constraint is I am using both an installation project (part of the same solution) and a ClickOnce install depending on the deployment environment. This seems like it should be incredibly simple, but I have been unable to find an answer so far.

Thanks for the help!

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

    One method you might look into is to tweak the .csproj file and add a post build target to do the copying. This should be close to what you need:

    <ItemGroup>
        <DocumentationFiles Include="DocsDirectory\**\*"/>
    </ItemGroup>
    
    <Target Name="AfterBuild">
        <Copy
            SourceFiles="@(DocumentationFiles)"
            DestinationFolder="Output\Docs\"
        />
    </Target>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a git directory which contains the a whole bunch of files and
I have a directory which contains subdirectories which contain files. All the file names
In our web application we have a directory which resides outside of the project.
I have a directory to which a process uploads some .pdf files. This process
I have a shell script which copies a few files to the current directory,
I have a directory say DIR which contains so many directories say A, B
Suppose I have a directory /dir inside which there are 3 symlinks to other
I have an application which takes a string value of the form %programfiles%\directory\tool.exe from
I have a legacy VB6 program which installs an Access file in a sub-directory
I have a directory with PDF files that I need to create an index

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.