Method SubscribeResolveForAssembly
- Namespace
- Xunit
- Assembly
- xunit.v3.runner.utility.netfx.dll
SubscribeResolveForAssembly(string, IMessageSink?)
Subscribes to the appropriate assembly resolution event, to provide automatic assembly resolution for an assembly and any of its dependencies. Depending on the target platform, this may include the use of the .deps.json file generated during the build process.
public static IDisposable? SubscribeResolveForAssembly(string assemblyFileName, IMessageSink? diagnosticMessageSink = null)
Parameters
assemblyFileNamestringdiagnosticMessageSink
Returns
- IDisposable
An object which, when disposed, un-subscribes.
SubscribeResolveForAssembly(Type, IMessageSink?)
Subscribes to the appropriate assembly resolution event, to provide automatic assembly resolution for an assembly and any of its dependencies. Depending on the target platform, this may include the use of the .deps.json file generated during the build process.
public static IDisposable? SubscribeResolveForAssembly(Type typeInAssembly, IMessageSink? diagnosticMessageSink = null)
Parameters
typeInAssemblyTypediagnosticMessageSink
Returns
- IDisposable
An object which, when disposed, un-subscribes.