Menu

#434 Solution task fails compiling ...

0.85
closed-invalid
nobody
Tasks (408)
3
2005-09-14
2005-07-13
No

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

Discussion

  • Ali Bolourian

    Ali Bolourian - 2005-07-13
    • priority: 5 --> 9
     
  • Ali Bolourian

    Ali Bolourian - 2005-07-13

    Logged In: YES
    user_id=921564

    By the way, project B builds successfully in VS.NET but not
    in NAnt.

     
  • Ali Bolourian

    Ali Bolourian - 2005-07-14

    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.

     
  • Ali Bolourian

    Ali Bolourian - 2005-07-14
    • priority: 9 --> 3
     
  • Gert Driesen

    Gert Driesen - 2005-07-15

    Logged In: YES
    user_id=707851

    Ali,

    Can you please attach that repro ?

    Thanks !

     
  • harrie

    harrie - 2005-08-20

    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.

     
  • Ali Bolourian

    Ali Bolourian - 2005-09-14
    • status: open --> closed-invalid
     

Log in to post a comment.