I am new to Docker and I am getting an error from the below line in the Main method, it's a .net core 3.1 API with Docker, When it tries to initialize the Nlog, the code unable to find the nlog.config, the file is configured to copy always.
var logger = NLog.Web.NLogBuilder.ConfigureNLog("nlog.config").GetCurrentClassLogger();
this is the error I am getting,
System.IO.FileNotFoundException: 'Failed to load NLog LoggingConfiguration.
Searched the following locations:
- /app/bin/Debug/netcoreapp3.1/nlog.config
It is working fine when running with IIS.
Thanks in advance Aabid

