Hi everyone,
I am invoking MSBuild from command line and am running into the following error:
[INFO] Build FAILED.
[INFO] CSC : error CS0006: Metadata file '..\..\..\..\..\..\dotNetLib\Microsoft.Practices.Enterprise
Library\ExceptionHandling.Logging\2.0.0.0\ExceptionHandling.Logging.dll' could not be found
[INFO] 0 Warning(s)
[INFO] 1 Error(s)
The dll in question DOES exist at the path specified. This error is occuring in the "corecompile" target. Prior to this step, there seems to be another target that's invoked which is "resolveassemblyreferences" and here's the output from that:
[INFO] Target ResolveAssemblyReferences:
[INFO] Primary reference "Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging, Versi
on=2.0.0.0, Culture=neutral, PublicKeyToken=null".
[INFO] Could not find dependent files. The system cannot find the path specified. (Exception
from HRESULT: 0x80070003)
[INFO] Resolved file path is "..\..\..\..\..\..\dotNetLib\Microsoft.Practices.EnterpriseLibr
ary\ExceptionHandling.Logging\2.0.0.0\ExceptionHandling.Logging.dll".
[INFO] Reference found at search path location "{HintPathFromItem}".
It seems like the resolve assemblyreferences IS able to find the reference in the end so I am not sure why the error is occuring. I've been wrestling with this for over a day and am at my wit's end. Any help will be greatly appreciated.
Thank you.