Last active
December 28, 2015 14:49
-
-
Save JayBazuzi/7517928 to your computer and use it in GitHub Desktop.
Simple MSBuild task w/ parameter logging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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