You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can´t seem to get this to work when adding NLog to my aspnet core application.
I have installed the nuget NLog.Web.AspNetCore and are trying to configure the use of this in my Startup.cs file:
'ILoggerFactory' does not contain a definition for 'AddNLog' and no extension method 'AddNLog' accepting a first argument of type 'ILoggerFactory' could be found (are you missing a using directive or an assembly reference?)
and
'IHostingEnvironment' does not contain a definition for 'ConfigureNLog' and no extension method 'ConfigureNLog' accepting a first argument of type 'IHostingEnvironment' could be found (are you missing a using directive or an assembly reference?)
The text was updated successfully, but these errors were encountered:
Hi
I can´t seem to get this to work when adding NLog to my aspnet core application.
I have installed the nuget NLog.Web.AspNetCore and are trying to configure the use of this in my Startup.cs file:
I get these errors when building:
'ILoggerFactory' does not contain a definition for 'AddNLog' and no extension method 'AddNLog' accepting a first argument of type 'ILoggerFactory' could be found (are you missing a using directive or an assembly reference?)
and
'IHostingEnvironment' does not contain a definition for 'ConfigureNLog' and no extension method 'ConfigureNLog' accepting a first argument of type 'IHostingEnvironment' could be found (are you missing a using directive or an assembly reference?)
The text was updated successfully, but these errors were encountered: