Can Pre-Build Events Raise Warnings?

build-process, msbuild, visual-studio

Solution

Please look at MSBuild / Visual Studio aware error messages and message formats.

Problem

I have a custom tool which is set up as a pre-build event, it does some multi-language processing on the source code before it builds. I was wondering if it was possible for that tool to generate warnings which can be seen in visual studio's list of build warnings, either by outputting a specific string to the console (or by some other method). Thanks

Original source