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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:39:10+00:00 2026-05-16T04:39:10+00:00

I am working with a team on quite a few visual studio (2008) projects

  • 0

I am working with a team on quite a few visual studio (2008) projects which share a lot of code. Some files are used by all projects, but some are only useful to 1 or 2.
I am looking for a way to extract all useful files for one particular project.

The principle we use is to share directories. Each project selects the shared directories it wants to use in the inclusion-directory list (inside the project properties). All such directories are created inside a root directory (directly or not).

 project_dir/  
 shared1_dir/  
 shared2_dir/  
 ...

Given a project file, what it the most efficient way to copy all needed files, keeping the shared-directory structure, but in a new root directory ? The objective here is to make a strict archive of a project.

NB : source files in shared directories are usually not cpp files, but rather header files (our projects use a lot of templates).

  • 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-16T04:39:11+00:00Added an answer on May 16, 2026 at 4:39 am

    I have written a small tool in python that does the job. The principle is to launch a “rebuild all” command in devenv for the to-be-archived solution+project, and to interpret its output.

    This command is applied to a special configuration (in my case “ReleaseInclude”) to which a couple of subtle changes (compared to “Release” configuration) have been made :
    * enabled option “showIncludes” (compiler option)
    * enabled option “/verbose:lib” for libraries (linker option)

    Now,
    * using regexp in visual studio project files, i have been able to retrieve all cpp and other ressource files.
    * using regexp on the output of the compilation (don’t forget to enable the output for devenv !), i have been able to list all include and library files

    I have also filtered this list of files to ignore visual-studio-centric files.

    Tested and approved.

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

Sidebar

Related Questions

I am working with Team Foundation Server and Visual Studio 2008 for the first
Our team is currently working on a large project which makes heavy use of
I am using TFS 2008 and Visual Studio and my boss has instructed me
So I find myself working for a few weeks in a small team of
OK my problem is quite simple Im about to start working with a team
My team and me are currently working on quite a large project. We are
In a team where multiple people are working on same file or different files
I have been working with managing agile teams for quite some time. Now I'm
In the project my team is working on, there is a windows service which
I'm currently working on a quite big (and old, sigh) code base, recently upgraded

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.