Last Updated: February 25, 2016
· mauris

NLog.config using NuGET

Most tutorials online teaches you to add the NLog configuration using the "Project > Add > New Item" method and select the "Empty NLog Configuration File" under NLog. However, if you install NLog using NuGET, the file template would not show up under "Add New Item". ):


The solutions provided by the other guys requires you to remove NLog as a NuGET package, and install NLog using the "old fashion way".

The good news is, you can still install NLog via NuGET and still add a NLog configuration file. Simply install the "NLog.Config" package via NuGET and a new NLog.config file will be added to your project. Voilà!


I encountered this while working on Sparse.