This page last changed on Jul 25, 2006 by rprouse.

Resolving assemblies can be a tricky business. MbUnit has a complex support for this but it is not always sufficient. In order to give full flexibility, one can define a assembly resolver type that will be used by MbUnit to resolve assemblies (as well as the default behavior).

There are 2 stops to implement this feature:

  1. Implement IAssemblyResolver (MbUnit.Core.Framework), don't forget to have a public constructor without arguments,
  2. Add a assembly level custom attribute AssemblyResolverAttribute with the type of the IAssemblyResolver implementation
Unable to find source-code formatter for language: cs. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml
public class MyAssemblyResolver : IAssemblyResolver
 {
     public Assembly Resolve(string assemblyName)
     { ... }
 }

 [assembly: AssemblyResolver(typeof(MyAssemblyResolver))]
Document generated by Confluence on Jun 11, 2007 11:56