If something writes out CDATA into the log, this logger crashes with the following error message:
MSBUILD : error MSB4017: The build stopped unexpectedly because of an unexpected logger failure.
Microsoft.Build.Exceptions.InternalLoggerException: The build stopped unexpectedly because of an unexpected logger failure. ---> Microsoft.Build.Exceptions.InternalLoggerException: The build stopped u
nexpectedly because of an unexpected logger failure. ---> System.ArgumentException: Cannot have ']]>' inside an XML CDATA block.
at System.Xml.XmlTextWriter.WriteCData(String text)
at MSBuild.ExtensionPack.Loggers.XmlFileLogger.WriteMessage(String message, Boolean escape)
To avoid this I have simply removed CDATA boundaries from the message.
If something writes out CDATA into the log, this logger crashes with the following error message:
To avoid this I have simply removed CDATA boundaries from the message.
You can test it by using this MSBuild task:
<Message Text="<![CDATA[ something]]>" />