every time i click build solution, a file named NLog.xml occur on the Debug or Release folder.
it has no use in production actually, and it uses 1.6Mb, so how can i disable generate it whild build solution?
Asked
Active
Viewed 156 times
0

bthulu
- 1
- 1
-
Not sure how you can avoid that it is generated, but you don't need the file. When you move your program to production, don't copy the Nlog.xml file – Lies Dec 13 '21 at 22:34
-
Does this answer your question? [Use of nlog.xml](https://stackoverflow.com/questions/2209704/use-of-nlog-xml) – Lies Dec 13 '21 at 22:37
-
Is it a nlog.xml or nlog.config (xml content). What's the content of the nlog.xml? – Julian Dec 24 '21 at 12:48
-
Duplicate of https://stackoverflow.com/questions/2011434/preventing-referenced-assembly-pdb-and-xml-files-copied-to-output ? – Rolf Kristensen Dec 27 '21 at 09:13