Is it possible when building a solution to cause msbuild to output the name of the currently built project

msbuild

I have several projects in a solution, which I build using msbuild in the quiet mode (/v:q).
However, this is too quiet for me. I would like it to print the name of the currently built project. So if A.sln contains 1.csproj, 2.csproj and 3.csproj, then msbuild A.sln should print something like:

1

2

3

Thanks.

EDIT:

I would also like to print the name of the built project if and only if msbuild runs in the quiet mode. In all other modes, this printout is totally redundant.

Best Answer

You could try adding the following to your build scripts.

<Target Name="BeforeBuild">
<Message Text="$(MSBuildProjectName)" Importance="High"/>
</Target>