Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Name 'NLogBuilder' does not exist in the current context #221

Closed
rusdawg400 opened this issue Nov 30, 2017 · 7 comments
Closed

The Name 'NLogBuilder' does not exist in the current context #221

rusdawg400 opened this issue Nov 30, 2017 · 7 comments

Comments

@rusdawg400
Copy link

In my 'asp.net core 2' project I am unable to configure Nlog as specified in the document located here:

https://github.com/NLog/NLog.Web/wiki/Getting-started-with-ASP.NET-Core-2

Visual studio is providing an error message of:
'The Name 'NLogBuilder' does not exist in the current context'

@304NotModified
Copy link
Member

is this #208?

@rusdawg400
Copy link
Author

I guess so, but It is not clear on how to resolve this issue. Is the documentation up to date?

@rusdawg400
Copy link
Author

The Example located at : https://github.com/NLog/NLog.Web/blob/master/examples/ASP.NET%20Core%202/Visual%20Studio%202017/ASP.NET%20Core%202%20-%20VS2017/Program.cs

does not match the documentation. Can this be updated to a working example?

@304NotModified
Copy link
Member

does not match the documentation. Can this be updated to a working example?

Could you highlight the differences for me please? I'm currently working on .NET 4.6.1 to get it working on ASP.NET Core 2

@rusdawg400
Copy link
Author

rusdawg400 commented Nov 30, 2017 via email

@304NotModified
Copy link
Member

304NotModified commented Nov 30, 2017

I will check. The last time the sample builds and runs at my local machine.

Maybe it's a different platform (netstandard 2.0 vs .net 4.6.1+)

@304NotModified
Copy link
Member

Fixed in Fixed in Nlog.Web.AspNetCore 4.5 rc1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants