2

Added to project.json file for logging:

"Microsoft.Framework.Logging.NLog":  "1.0.0-beta1"

The Framework.Logging.NLog depends internally upon NLog, which I tried installing via Nuget, project.json, Package console. It doesn't help.

Also wasn't able to find a way to configure NLog logging and a tutorial/guide to place the config sections of NLog.

Julian
  • 33,915
  • 22
  • 119
  • 174
Rohit Tidke
  • 150
  • 1
  • 10
  • For these types of questions it is often most helpful to post the contents of the `project.json` file. If the answer below doesn't help, that's what we'll need to see. – Eilon Jan 13 '15 at 02:34

1 Answers1

1

NLog does not ship for CoreClr hence you need to define the dependency under aspnet50. Do look at the sample https://github.com/aspnet/Logging/blob/dev/samples/SampleApp/project.json

Suhas Joshi
  • 1,042
  • 9
  • 11
  • [Microsoft.Extensions.Logging.NLog](http://www.nuget.org/packages?q=Microsoft.Extensions.Logging.NLog) and [Microsoft.Framework.Logging.NLog](http://www.nuget.org/packages?q=Microsoft.Framework.Logging.NLog) are currently not on NuGet. Do you know if this is the only way to get NuGet with .Net 5? – JabberwockyDecompiler Nov 17 '15 at 19:28
  • Not being able to get the package may be related to https://github.com/aspnet/Home/pull/1034 – JabberwockyDecompiler Nov 18 '15 at 17:38
  • 1
    We are working on CoreCLR support http://nlog.userecho.com/topic/935284-support-coreclr/ – Julian Jan 09 '16 at 13:10
  • There is now a nuget package, including CoreCLR support (alpha) see: https://www.nuget.org/packages/NLog.Extensions.Logging / https://github.com/NLog/NLog.Extensions.Logging – Julian Feb 15 '16 at 16:42