1
votes

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.

2

2 Answers

0
votes

You could try adding the following to your build scripts.

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

Try /v:m[inimal]. This will output each project and its output file name after it gets compiled.