Helps you find orphaned images or files in projects and directories.

(8) Review
Visual Studio
2015, 2013, 2012
Download (7,428)
E-mail Twitter Digg Facebook
Add to favorites
Reviews (8)
Q and A (4)
Sign in to write a review
Sort by:

by Mattia Marchiani | September 29 2016

Nice but with some errors.
For example, I've made a bundle with all my css/js files and loaded it in my website with bundleconfig.cs (from app_code); this extension say that files are unused..

by kmanchester | June 03 2016

I have been wanting to write a series of "scrubbing" programs or scripts for awhile now, and quit with powergrep and similar regex find/replace time vampires. After stumbling onto this little gem, and running the stand-alone version against some pretty messy old websites I am thinking I can scratch some of the planned coding projects thanks to you Mr. Hoffman. I love the simplicity. Assuming no issues with php, shtml, m4p, etc extensions after quick test. Excellent. A virtual Bier for you.

Robert Hoffmann June 06 2016
| Edit |

Thanks for the beer ! Ein dunkeles hefeweizen bitte :-)

by Rosdi Kuat | March 15 2016

Useful... as long as you know what you are doing.

Robert Hoffmann March 15 2016
| Edit |

Thank you for the review !

by YismalOli | January 24 2016

thanks! great tool!
already trashed over 80!! files...way to go...
really appreciate

Robert Hoffmann March 15 2016
| Edit |

Your welcome. Thanks for the vote !

by Erik_Sargent | November 20 2015

Thanks a ton!

I recently took a new job and inherited a site with almost 100 js files and 36 different CSS files. Not bad, except the site really only has about 25 pages exposed to users. I knew a lot of these weren't used, but going file-by-file through the list seemed daunting. I didn't even want to think about unused images.

With this utility I was able to find 177 files (including images) that were not used and easily remove them. That gave me a lot more confidence to refactor and simplify the site and site structure.

You saved me an entire day of drudgery - and I got to remove a bunch of unused images as bonus!

Robert Hoffmann November 28 2015
| Edit |

Sorry for the late reply, but happy to see it saved you some time !

by Skytrack | October 09 2015

I'm using VS2013 and it doesn't work, VS gives a message "Package did not load correctly". Too bad coz would be handy.

Robert Hoffmann October 09 2015
| Edit |


Instead of giving 1 star for something you haven't even tried yet, how about filing a bug report on github and trying to find a solution ? :)

The extension was built with VS2013 update 5 and has zero dependencies aside .net 4.5, so it's very likely you have some other extension causing some kind of incompatibility.


by Fedri | July 02 2015

using VS 2012. this tools is awesome

by Carolina Bauque | August 19 2013

I'm using this tool on VS 2012 and works like a charm.

Sign in to start a discussion

  • Files referenced in Bundle will be marked as unused
    1 Posts | Last post March 15, 2016
    • This somewhat works... but I have some js files that are only referenced via Bundle and this tool wrongly mark it as unused...
      This tool is useful but do not delete indiscriminately... make sure you know what you are doing...
  • Incompatible with Resharper?
    5 Posts | Last post October 23, 2015
    • Hi Robert. I was interested in checking out this extension but when I load it and try to use it I get an error. From the ActivityLog.xml file I saw these two issues. Any clues as to what might be wrong?
          <time>2015/09/26 15:16:32.983</time>
          <description>CreateInstance failed for package [FindUnusedFilesPackage]</description>
          <errorinfo>Could not load file or assembly 'Microsoft.VisualStudio.Shell.11.0, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.</errorinfo>
          <time>2015/09/26 15:16:32.983</time>
          <description>End package load [FindUnusedFilesPackage]</description>
          <hr>80004005 - E_FAIL</hr>
          <errorinfo>Could not load file or assembly 'Microsoft.VisualStudio.Shell.11.0, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.</errorinfo>
    • Oh, I am using Visual Studio 2013 Premium
    • Hi John,
      No, i do not think resharper is the problem here, i use resharper on all my machines and the extension works fine on both 2013/2015 here.
      However i do have a bunch of SDK's and stuff on my machines so probably no surprise that it will find anything i throw at it.
      Found similar issues i'll look at:'Microsoft.VisualStudio.Shell.11.0
      I'm not at home at the moment so can't test anything, but in the meantime could you open an issue on GitHub and well see what we can do to try and debug the issue ?
    • Same issue here. 2012 Ultimate and "Could not load file or assembly 'Microsoft.VisualStudio.Shell.11.0, ..."
    • I find this to be an invaluable tool, but I'm having this same problem on multiple machines using both VS2012 and VS2013.  Any update on this issue?
  • Is this a case-sensitive comparision?
    11 Posts | Last post September 24, 2015
    • I downloaded this tool today, and started inspecting unused files in my project.
      However, I think that this tool does case sensitive comparison. For example, if Logo.img file is referenced as logo.img file in some aspx page, then it identifies that as an unused image, which is not true. 
      Can anyone please suggest if this is a case-sensitive comparison?
    • Yes i think it's case sensitive.
      I haven't opened the project in a while, but i'm migrating it to github now. Once migrations are done, i'll update the code to make sure/verify that you can also do case-insensitive comparisons.
      What do you think is better ..just plain outright case-insensitive, or adding an option to chooses sensitivity type (not sure this is actually useful on windows though) ?
    • I know it might be a little more work, but I'd add the flexibility of case sensitivity. Some situations require that, but others would work better without.
    • I was thinking of writing my own, but found this one to be helpful. Any idea when it will be published in github so that community can help in making it case insensitive.
    • Project is on github
      Just haven't had the time to update the code yet. The searching is going on in "FormMain.cs", mainly on lines: 706, 718, 719, 750
    • To build open the .sln in the root folder, it will load both the standalone and VS extension projects.
      It's probably safer to only use VS 2013, and edit the "source.extension.vsixmanifest" by hand if needed.
    • Plug-in is now culture-invariant a
    • ..hit wrong key in previous reply ^^
      Plug-in is now culture-invariant and case insensitive.
      Cheers !
    • Great! I see from your comments that you have already taken care of the cases sensitive issue. BTW I have forked the project and working on adding a feature to remove some folders from scanning (useful for third party libraries). 
    • Yes started to accelerate modifications a bit :-)
      I've made quite a few changes since yesterday (see changelog.txt), so you might wanna resync your git before changing too much. Releases are git tagged.
      Also for now _APP & _VS use the exact same code, just some extra code in the _VS project. So for now i usually work on the _APP code (easier to debug) and diff/sync the changes to the _VS code. But later i'm gonna wanna move all shared code to a lib or something...
      Have fun hacking !
    • Lots of changes coming up soon
      @JoJobar234 i though your idea of folder exclusions was cool and added it, tnx !
  • VS2010?
    12 Posts | Last post June 18, 2015
    • Does this tool work with VS 2010 as well, or just from 2012 and up? :)
    • It works theoretically with 2010, but the installer format has changed so much since 2010 i didn't bother making it compatible.
      So there are 2 solutions..
      1) Download the vsix (it's a zip file ^^), extract and modify the manifest files manually, and rezip
      2) Use the command line version by adding it to "external tools"
    • Do you have a version for VS2013 yet?
    • Are you planning to release VS2013 update? 
    • I second that! VS 2013 please.
    • For VS2013 just change an few strings in the manifest file (in he VSIX as described by the author about VS2010). More specifically: change all the "11.0" in "12.0" and that's it. Works like a charm.
    • Hey guys, just updated the VSIX to support 2012 & 2013
      Cheers !
    • Hi,
      Sorry but it does not work with Visual Studio 2013 Ultimate.
      When started it shows an error window : "The parameter is incorrect.(exception from HRESULT:0x80070057 (E_INVALIDARG)".
    • Don't know about ultimate, sorry, there's no reason it shouldn't work in there ..if someone has an idea ?
      Got it running in 2015 at home now. At work though it complains about .net framework version. Also wierd since it relies on 4.5, yet at work i'm already on 4.6
    • Now running at work on vs 2013/2015-RC with .NET 4.6 installed. Just had to bump some more vsix numbers !
    • Hey Robert,
      I am using Visual studio 2010 and is struggling to install your tool(FindUnusedFiles.vsix).
      Could you please update the tool, so that it supports VS2010 as well, so life becomes much easier.
      Appreciate for swift action.
      Thank You,
      Former Microsoft Employee)
    • Hi SreejithRajan,
      Sorry to hear you are still stuck on 2010. Unfortubnately i neither have 2010 on my pc, nor have the intention of installing it. But last time i checked, the visix format 2010 uses is completely different from 2012 and up, so i never bothered with it.
      It's however very easy to integrate standalone version with any ide including 2010. You can grab it here