Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I write output to the console from a custom MSBuild task?

Tags:

.net

msbuild

I'm trying to debug an MSBuild task, and I know there is some way to write to the MSBuild log from within a custom task but I forget how.

like image 262
Luke Avatar asked Oct 02 '08 17:10

Luke


1 Answers

The base Task class has a Log property you can use:

Log.LogMessage("My message");
like image 194
Kent Boogaart Avatar answered Sep 30 '22 02:09

Kent Boogaart