1:: Simple script to build the XmlFileLogger project and then build again with the 2:: XML logging enabled. Writes to buildlog.xml. 3@echo off 4setlocal 5set DebugBuildOutputPath=%~dp0..\bin\Samples\Debug\XmlFileLogger 6set TempBinPath=%~dp0..\bin\XmlFileLogger 7set ProjectToBuild=%~dp0\XmlFileLogger\XmlFileLogger.csproj 8 9echo Building source 10MSBuild.exe "%ProjectToBuild%" /v:Minimal /nologo 11echo. 12 13echo ROBOCOPY %DebugBuildOutputPath% -^> %TempBinPath% 14robocopy "%DebugBuildOutputPath%" "%TempBinPath%" *.* /S /NFL /NDL /NJH /NJS /nc /ns /np 15echo. 16 17echo Rebuilding sources with XmlFileLogger enabled (no ouput). 18MSBuild.exe "%ProjectToBuild%" /verbosity:diagnostic /logger:XmlFileLogger,%TempBinPath%\XmlFileLogger.dll;%~dp0buildlog.xml /t:Rebuild>nul 19echo MSBuild.exe returned exit code %errorlevel% 20echo See buildlog.xml for XML log file.