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 solution that has a few projects in it. I'd like to
I have vs2003 c# solution with multiple projects. It seems like project1 in sln
I have a basic solution file (.sln) where I was able to reproduce a
I have a solution that contains an ASP.NET Web Site (file-based) project. I'm currently
I have an MSBuild script which compiles my existing solution but I'd like to
On our continous integration server (Teamcity 5.1.3) we have a msbuild script that is
Are there good patterns for mapping solution configurations to environments and using MsDeploy for
i have an ASP.NET project written in Delphi.NET with Borland Studio 2006. Well it
I am currently working on a project in .NET which consists of several logical

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.