Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MSBuild.exe output encoding

Tags:

c#

utf

msbuild

I use MSBuild.exe for building solution on machine with russian language. But in TeamCity build log all russian chars in wrong encoding. How to setup MSBuild.exe for properly output (UTF-8 for example)?

like image 477
Dmitriy Kudinov Avatar asked Feb 10 '12 06:02

Dmitriy Kudinov


1 Answers

Check /fileloggerparameters command line parameter here. It should be the same for console logger.

e.g. MyLog.log file with diagnostic verbosity using UTF-8 encoding:

/fileLoggerParameters:LogFile=MyLog.log;Encoding=UTF-8;Verbosity=diagnostic
like image 149
Ludwo Avatar answered Nov 05 '22 10:11

Ludwo