Create a gist now

Instantly share code, notes, and snippets.

@JayBazuzi /MyTask.cs
Last active Dec 28, 2015

Simple MSBuild task w/ parameter logging
public class MyTask : Task
{
[Required]
public string Foo { get; set; }
public override bool Execute()
{
Log.LogMessage(MessageImportance.Low, "Inputs:");
Log.LogMessage(MessageImportance.Low, " Foo = {0}", this.Foo);
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment