Skip to content

Instantly share code, notes, and snippets.

@JayBazuzi
Last active December 28, 2015 14:49
Show Gist options
  • Save JayBazuzi/7517928 to your computer and use it in GitHub Desktop.
Save JayBazuzi/7517928 to your computer and use it in GitHub Desktop.
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