-1

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

張雋辰
  • 11
  • 2

2 Answers2

0

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

enter image description here

See NuGet

Julian
  • 33,915
  • 22
  • 119
  • 174
0

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

iamdeed
  • 354
  • 4
  • 19