Home > Software engineering >  .net core nuget NLog.Web.AspNetCore
.net core nuget NLog.Web.AspNetCore

Time:08-31

I want to use NLog.Web.AspNetCore, but don't want to get it through nuget

The project directly refers to NLog.Web.AspNetCore.dll, using the UseNLog function, the compiler prompts that the component must be added 'Microsoft.AspNetCore.Hosting.Abstractions, Version=5.0.0.0

But Microsoft.AspNetCore.Hosting.Abstractions is only version 2.2

what can i do

CodePudding user response:

In the package I see it needs Microsoft.AspNetCore.Hosting.Abstractions 2.1

enter image description here

See NuGet

CodePudding user response:

you can download it to a path on your PC locally and install it manually, for instance you can download it from https://nlog-project.org/ follow steps from here on how to install from a local path on your computer

  • Related