log4net.config not recognized by combined exe
kualala
Posts: 3
Hi,
I have a .net console application with few dlls, in assemblyInfo.cs i have
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config", Watch = true)]
after using SA to build a combined single .exe, the new .exe assembly seems don't recognize the log4net.config since it does not generate the log file.
is there something i did wrong?
I have a .net console application with few dlls, in assemblyInfo.cs i have
[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config", Watch = true)]
after using SA to build a combined single .exe, the new .exe assembly seems don't recognize the log4net.config since it does not generate the log file.
is there something i did wrong?
Comments
Should that not be the issue, could you kindly try building the application in SA again but will all options (merging, obfuscation, etc..) turned off? Please let me know if the log file still does not get created in that case.
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?
Of course I copied over the log4net.config myself.
And I did the testing you suggested, and found that without merging the log4net.dll, the output exe can produce the log file.
So I chose to embed the log4net.dll instead of merging, the output exe file
can produce the log file.
so my problem solved.
thank you very much.
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?