FlubuCore v2.3.0 Release Notes

    • Option to pass through arguments to tasks

      context.CreateTarget("ExampleTarget")
          .AddTask(x => x.CompileSolutionTask()
              .ForMember(m => m.BuildConfiguration("Release"), "c"));
      
      //// alternatively you can get argument value like this:
      string configuraiton = context.ScriptArgs["c"];
      

    You can execute target with -c argument:

    ๐Ÿ— build.exe ExampleTarget -c=Debug

    ๐Ÿ— You can also set value in configuration file (flubusettings.json) or through enviroment variable. See https://github.com/flubu-core/flubu.core/wiki/2-Build-script-fundamentals#Script-arguments for more info.