strongnamer icon indicating copy to clipboard operation
strongnamer copied to clipboard

Build fails when a dependency uses a type from a second order dependency as a constant

Open Nick-Lucas opened this issue 7 years ago • 3 comments

This bug was discovered in the research under #10 and is caused by Mono.Cecil trying to resolve the .dll for a second order dependency, when the value of a compile time constant needs to be validated as part of writing an assembly.

When this happens the second order dependency cannot be resolved, since it's not in the project/bin/GAC folders, and the build fails.

Proposed solution is to implement a custom AssemblyResolver class and pass the list of solution assemblies in, for later resolution and returning.

Nick-Lucas avatar Feb 15 '17 18:02 Nick-Lucas