问题
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)?
回答1:
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
来源:https://stackoverflow.com/questions/9223691/msbuild-exe-output-encoding