Skip to content

ArchUnit does not load the names of referenced assemblies for dependent / recursively loaded assemblies #311

@made-by-karl

Description

@made-by-karl

ArchLoader.LoadModule() sets the name of referenced assemblies only for the requested assembly, not for other loaded assemblies.

I think you can retrieve this data from an AssemblyDefinition via the MainModule.AssemblyReferences property, so instead of calling
_archBuilder.AddAssembly(assemblyDefinition, false, null) you could set the referenced assembly names inside of the AddAssembly() method.

I'd like to open a PR for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions