CS0006: Metadata file <...> not found.

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

Question:
When I attempt to build several projects in my solution, I receive the
following fatal error.

error CS0006: Metadata file '<some full path to one of my dlls' could not be
found.

This is happening now in 14 of 34 projects, and I cannot figure out what the
cause could be. Could anyone offer any suggestions? I've tried setting copy
local to true on all of "my" references, ones that I created. This is a
desktop application, not a web application so there are no web references. I
have never seen this sort of behavior in any of my previous solutions, and I
have had a lot of solutions that held many more projects.
 
Mark said:
Question:
When I attempt to build several projects in my solution, I receive the
following fatal error.

error CS0006: Metadata file '<some full path to one of my dlls' could not
be found.

I've seen that happen when the project that builds the DLL fails to build,
but the errors the compiler generatoes about the failed build get buried in
errors from other projects, often times the error you are getting here.
Check and ensure that the project that builds the dll builds on its own.

If that fails, do a full rebuild.
 
Hi,

I just received this error (using VS2005) after trying to compile using
shortcut keys : CRTL-B. I had just finsihed performing a bulk find
replace code across many pages in a single project.

Quick solution was to Build->Rebuild Website.
Rob.
 
Back
Top