<p>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.</p>

The base
Task
class has a
```
Log
```
property you can use:
```
```
Log.LogMessage("My message");
```
```