If you happen to have a linux-like environment with access to the project folder (for instance, if you use git for version control, you can probably use the included Git Bash for this, or if you use Cygwin), here's my really quick and dirty way:
grep '<Content Include="' "project_file.csproj" | sed 's/^.*"\([^"]*\)".*/\1/' | sed 's/\\/\//g' | xargs -d'\n' ls > /dev/null
(How this works: I try to ls
every file named in the project, and send the stdout output of the ls
command to /dev/null
, so it will be hidden. If any files do not exist, ls
will barf their names to stderr rather than stdout, so those will be visible.)
Note that this doesn't understand URL-encoded escapes, so you will get a few false positives if your project contains filenames with characters like '(' in them.