In VS.NET 2003 Project A has a reference to assmebly
X that is depending to .NET 1.0 and I don't have .NET
1.0 on my machine. This project compiles and works
with no problem both in NAnt and VS.NET.
Now project B in a different solution has a reference to
assembly A, this project fails to build. the error is:
Error resolving module references of 'A.dll'.
File or assembly name X.dll, or one of its
dependencies, was not found.
Thanks,
Ali B
Logged In: YES
user_id=921564
By the way, project B builds successfully in VS.NET but not
in NAnt.
Logged In: YES
user_id=921564
I found out that module X had some dependencies to other
modules and they didn't show up even in Reflector and
therefore didn't come with X to project A's set of bin files. So
project B fails to build because
module = Assembly.LoadFrom(moduleName);
fails to load X in
NAnt.VSNet.ReferencesResolver.AppendReferencedModulesL
ocatedInGivenDirectory()
So now the main problem is that:
If a module has any hidden dependencies on X, VS.NET
builds B successfully and NAnt doesn't.
Logged In: YES
user_id=707851
Ali,
Can you please attach that repro ?
Thanks !
Logged In: YES
user_id=1332164
Hi, I have experieced the same problem.
The workaround i found is to set the reference property "Copy
local" in the project to "false" for this particular assembly.