Metalama 1.0 / / Metalama Documentation / Extensions API / Metalama.​Extensions.​Architecture.​Fabrics / Architecture­Verifier­Extensions / With­Referenced­Assembly

Method WithReferencedAssembly

WithReferencedAssembly(ArchitectureVerifier<ICompilation>, String)

Represents a fluent ArchitectureVerifier<T> that allows to validate code using a given assembly referenced by the current compilation. This method can only be used in a ProjectFabric.

Declaration
public static ArchitectureVerifier<IAssembly> WithReferencedAssembly(this ArchitectureVerifier<ICompilation> verifier, string assemblyName)
Parameters
Type Name Description
ArchitectureVerifier<ICompilation> verifier

The ArchitectureVerifier<T> returned by Verify(IProjectAmender).

String assemblyName

The name of the assembly, without version and public key.

Returns
Type Description
ArchitectureVerifier<IAssembly>