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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:30:46+00:00 2026-05-11T06:30:46+00:00

I have a software project which consists of multiple Project files and multiple Solution

  • 0

I have a software project which consists of multiple Project files and multiple Solution files. The Solution files have a one-to-many relationship with the Project files, and a given Project file may appear in multiple different solution files.

Is there any good/spiffy way to come up with a map of the relationships between the Solution files and the Project files? Either through VS or a utility of some sort.

What I’d like to do is say ‘hey, in this directory and its subdirectories there are a number of Solution files and Project files – please tell me which Solutions use which Projects and map it out for me’

I realize the net effect could be produced by opening up every Solution file and inspecting it but I’m looking for an automated, repeatable action.

EDIT: I’m afraid I also have Solution/Project combos dating back to VS2003, so I need to map those as well.

  • 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. 2026-05-11T06:30:47+00:00Added an answer on May 11, 2026 at 6:30 am

    Both project files and solution files are text files. Project files don’t know about their solution, so we’ll have to look in the solutions for their projects.

    A project entry in the solution file looks like this:

    Project('{9AC9CEB8-8B4A-11D0-8D11-00A0C91BC942}') = 'ProjectName', 'ProjectDirectory\ProjectFileName.vcproj','{9A95F635-B74F-4640-BBCF-E324D0972CA9}' EndProject 

    So you can see, we can grab the project name and the relative path to the project file.

    Using your favorite scripting language you could do something like the following. (Example in ruby)

    require 'find'  def project_name(string)   string =~ /= '(.+?)'/   $1 end  #the script doesn't use this method but you may want it def project_path(string)   string =~ /, '(.+?)'/   $1 end  def find_projects(path)   puts '#{path} contains the following projects:'   open(path).read.gsub(/Project\(.+?EndProject/m) do |match|     puts project_name(match)   end   puts '' end  #change File.dirname(__FILE__)) to the name of the directory you want to search. Find.find(File.dirname(__FILE__)) do |path|   if FileTest.directory?(path)     if File.basename(path) =~ /^\../ # Directory name starts with .       Find.prune       # Don't look any further into this directory.     else       next     end   elsif path =~ /\.sln$/     find_projects(path)   end end 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 57k
  • Answers 57k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Your select should build the Cartesian product, so you'll get… May 11, 2026 at 8:30 am
  • added an answer Use the list_of_ids directly: format_strings = ','.join(['%s'] * len(list_of_ids)) cursor.execute("DELETE… May 11, 2026 at 8:30 am
  • added an answer I just received the following response from PyAMF's lead developer.… May 11, 2026 at 8:30 am

Top Members

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

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.

      Related Questions

      No related questions found