0

In Visual Studio, I created an empty file (supposed to be a log file) and marked it as "Copy to output directory". It contains 3 bytes (BOM UTF-8).

If I manually delete all contents in external editor, it is copied as is, 0 bytes. However if I add one character in Visual Studio editor, it is copied as 4 bytes file - the BOM is back.

I don't like that. Is there a way how to tell Visual Studio not to add BOM?

Jan Turoň
  • 31,451
  • 23
  • 125
  • 169

0 Answers0