bugthesystem / Autofac.Extras.NLog

An Autofac module to integrate Autofac and NLog, it supports both constructor and property injection.
MIT License
50 stars 18 forks source link

Incompatible with NLog 2.0 api #5

Closed janv8000 closed 9 years ago

janv8000 commented 9 years ago

NLog's API changed a bit with version 2.0, eg. the LoggerReconfiguredDelegate was replaced with the built-in EventHandler.

But the nuget package declares its dependency for NLog without upper limit: <dependency id="NLog" version="1.0.0.505" />

Doing a Update-Package NLog will pull-down the latest version (3.x), no longer containing the LoggerReconfiguredDelegate.

The NLog dependency should be changed as follows: <dependency id="NLog" version="(1.0.0.505,2.0]" />

bugthesystem commented 9 years ago

Pushed new version 1.2.3