Dependency on nLog 2.0.0.0 breaks my unit tests

47 views
Skip to first unread message

Thomas Winsnes

unread,
May 2, 2013, 9:07:38 PM5/2/13
to reacti...@googlegroups.com
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?

Paul Betts

unread,
May 2, 2013, 9:08:42 PM5/2/13
to reacti...@googlegroups.com

4.5.0 isn't the latest version,  this bug is already fixed :-)

--
You received this message because you are subscribed to the Google Groups "ReactiveUI mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reactivexaml...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Thomas Winsnes

unread,
May 2, 2013, 9:25:57 PM5/2/13
to reacti...@googlegroups.com
Ooops, my mistake.

Thanks for the great work :)
Reply all
Reply to author
Forward
0 new messages