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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:25:30+00:00 2026-05-17T01:25:30+00:00

I have solution sln, that has many csproj projects. anyone know a way to

  • 0

I have solution sln, that has many csproj projects.

anyone know a way to programmatically read the list of References of all csproj projects in a VS2008 of sln file?

  • 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-17T01:25:31+00:00Added an answer on May 17, 2026 at 1:25 am

    csproj files are just XML files. You can use XDocument from the .NET framework for this. I’ve done it for VS2010, but in VS2008 the tags are almost the same.

    Example for VS2010, you have to verify the tags and namespace:

    XElement projectNode = XElement.Load(fileName);
    XNamespace ns = "http://schemas.microsoft.com/developer/msbuild/2003";
    var referenceNodes = projectNode.Descendants(ns + "ItemGroup").Descendants(ns + "Reference")
    

    You might also wanna check for the ProjectReference tag. Hope that helps.

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

Sidebar

Related Questions

I have a .sln solution file that references a .csproj project file that has
I have a Silverlight-based solution (SLN) with many projects. This application has been deployed
We have 3 years old solution (.sln) with about 20 projects (.csproj). It is
I have a solution in C:\full path here\VS2010\blender.sln This solution contains many projects(around 100).
I have a solution (sln file) file that contain several projects. The sln is
I have a solution that has a few projects in it. I'd like to
I have two solutions in their corresponding folder e.g. SolutionA\SolutionsA.sln SolutionB\SolutionB.sln Each solution has
I have a solution with many projects. One project contain few custom components. One
Let's say I have a single solution file that references N project files. There's
I have the following convention for most of my projects: /src /Solution.sln /SolutionFolder /Project1

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.