huorswords / Microsoft.Extensions.Logging.Log4Net.AspNetCore

Allows to configure Log4net as Microsoft Extensions Logging handler on any ASP.NET Core application. Original code proposal by @anuraj --> https://dotnetthoughts.net/how-to-use-log4net-with-aspnetcore-for-logging/
Apache License 2.0
248 stars 122 forks source link

Installing package via nuget - Version conflict detected #43

Closed nminaya closed 6 years ago

nminaya commented 6 years ago

I was trying to install the package from nuget in Visual Studio 15.7.2 in an ASP.NET Core 2.1 project. But it says it has a conflict with Microsoft.Extensions.Configuration.

image

It says that I have to reference the package directly to resolve the issue. But I don't want to have packages referenced directly in my project.

huorswords commented 6 years ago

Hello @nminaya ,

This package is not compatible yet with .NET Core 2.1, but it is on the scope to prepare it to be fully compatible.

I will try to prepare it as soon as possible, but meanwhile, I'm sorry but you will need to import specifically the referenced package on your project.

I will let you know when the package will be updated.

Regards,

huorswords commented 6 years ago

Hello again @nminaya ,

I have tried to reproduce your problem, with no success. (VS 15.7.5 + ASPNET .Core 2.1 WebApi)

aspnetcore21.zip

Can you share your project (or a minimum version to reproduce de issue) in order to see what is happening?

Thank you.

huorswords commented 6 years ago

Hello @nminaya ,

I have reproduced your issue.

The package you are using for Microsoft.AspNetCore.App package is 2.1.0, that have dependency with Microsoft.Extensions.Configuration 2.1.0.

If you upgrade your Microsoft.AspNetCore.App package to the version 2.1.1, the dependency should be fixed to use Microsoft.Extensions.Configuration 2.1.1, that is the one that I'm using on the package itself.

When I will create a new update for the package, is very probably that I raise the version dependencies again to the latests available, so keep it in mind if you have more issues with version dependencies in your project.

Sorry by the inconveniences. I close the issue.

nminaya commented 6 years ago

Hello @huorswords,

Thank you for your response.

That has resolved the issue.

Regards,

nminaya commented 6 years ago

For the record, to install Microsoft.Extensions.Configuration 2.1.1 I had to manually install the following packages: