Is there a way to find all files in project’s root folder or subfloders which are not referenced by this project?
Share
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.
There is nothing automated – in the Solution Explorer you can select the project node and click on the
Show All Filesbutton.You will then see files and folders not referenced by the project as grayed out.
If you wanted to automate this, you could produce a list of all files in the project directory and subdirectories from the OS (using
dirand redirecting the output to a file, for instance) and parse the project file to get a list of all files referenced by it. At this point, it would be a matter of comparing both lists.