Deploy as single-file in .net5 with log4net throws exception for config-file
问题 Trying to deploy a console-application written in .Net 5 with log4net as a single-file. Running deployed application throws exception. Steps to reproduce dotnet new console --name TestConsole --language C# (make sure .net 5.0) Install-Package log4net Program.cs static void Main(string[] args) { log4net.Config.XmlConfigurator.Configure(new FileInfo("log.config")); var logger = log4net.LogManager.GetLogger("TestLogger"); logger.Info("Hello World!"); } log.config (copy always) <?xml version="1.0