Metadata file could not be found


If you get the following error "Metadata
file <some exe or dll> could not be found" in building a
project in visual studio it is likely because you have a reference to an
assembly or application that was done by path and not the GAC and the file no
longer exists.

In your build output you will have something like

To check go to the references section of your project that won't build and
look for a reference that matches the ones being reported not to exist. Delete
it and re add the reference if required and then rebuild. Your "metadata could
not be found error" should go away".



Leave a Reply

Your email address will not be published. Required fields are marked *