msbuildtasks
msbuildtasks copied to clipboard
SvnClient output encoding
Add input parameter to specify output encoding of SvnClient captured console output, similar to StdOutEncoding of Exec task. Currently it does not return SVN xml log with correct encoding.
Example:
<SvnClient ToolPath="$(SvnToolsPath)" RepositoryPath="$(Path_Repo)" Command="log" Xml="true" Verbose="true">
<Output TaskParameter="StandardOutput" PropertyName="svnLogContent" />
</SvnClient>
<WriteLinesToFile File="$(SvnLogFileName)" Lines="$(svnLogContent)" Encoding="utf-8" Overwrite="true" />
While using Exec task the xml output have correct encoding:
<Exec Command='"$(SvnToolsPath)\svn.exe" log "$(Path_Repo)" --xml --verbose --non-interactive --no-auth-cache > "$(SvnLogFileName)"' StdOutEncoding="utf-8" />