Is there an easy way to print (to a text file) the path of all ‘References’ in a .NET project?
In the IDE, one could see the path of each, but if I want that printed for all references in a project, do you know how can this be done?
Thanks.
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.
If you look at the csproj file (assuming it’s a C# project you will find something like this:
You could read the project file as a XML document and fire up some XPath queries and do a Console.Writeline.