private void ExeSample()
{
Task.Run.ILMerge(x=>x.ExecutableLocatedAt("").AddSource("").AddSource("").OutputTo(""));
var response = Task.Run.Executable(exe => exe.ExecutablePath(@"c:\temp\myapp.exe").SucceedOnNonZeroErrorCodes());
if (response == 3 || response == 7)
{
BuildFile.SetErrorState();
Defaults.Logger.WriteError("MYAPP", "myapp.exe returned an error code of " + response);
}
}