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

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.
 
D

Daniel O'Connell [C# MVP]

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.
 
R

Rob Bertora

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top