diff --git a/build/Program.cs b/build/Program.cs index fb088c62..d2665174 100644 --- a/build/Program.cs +++ b/build/Program.cs @@ -9,49 +9,7 @@ public static class Program { return new CakeHost() .UseContext() + .UseWorkingDirectory("../") .Run(args); } } - -public class BuildContext : FrostingContext -{ - public bool Delay { get; set; } - - public BuildContext(ICakeContext context) - : base(context) - { - Delay = context.Arguments.HasArgument("delay"); - } -} - -[TaskName("Hello")] -public sealed class HelloTask : FrostingTask -{ - public override void Run(BuildContext context) - { - context.Log.Information("Hello"); - } -} - -[TaskName("World")] -[IsDependentOn(typeof(HelloTask))] -public sealed class WorldTask : AsyncFrostingTask -{ - // Tasks can be asynchronous - public override async Task RunAsync(BuildContext context) - { - if (context.Delay) - { - context.Log.Information("Waiting..."); - await Task.Delay(1500); - } - - context.Log.Information("World"); - } -} - -[TaskName("Default")] -[IsDependentOn(typeof(WorldTask))] -public class DefaultTask : FrostingTask -{ -} \ No newline at end of file