Hi,
I have a project where I use nLog 2.0.1.2 for logging and I'm using latest ReactiveUI from NuGet (4.5.0).
The app runs fine when I'm executing the application executable, with or without visual studio. Problem comes when I'm trying to run automated tests using nUnit on class libs that rely on ReactiveUI. It throws a TypeInitializationException.
Stack trace:
at ReactiveUI.RxApp.get_MessageBus()
at ReactiveUI.MessageBus.get_Current()
at App.MessageBusWrap..ctor()
App.MessageBusWrap constructor:
public MessageBusWrap()
{
_messageBus = MessageBus.Current;
}
Is there any way to configure ReactiveUI to not try to load nLog at run time? Or should I grab the source code and build a version of ReactiveUI that doesn't use nLog?