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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
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:
You might also wanna check for the ProjectReference tag. Hope that helps.