开发者

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

I have several projects in a solution, which I buil开发者_开发技巧d 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.


You could try adding the following to your build scripts.

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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜