/// <summary>
        /// Configures the dependency, criteria and error handling for a dotnet-lib recipe task
        /// </summary>
        /// <param name="builder">Cake task builder</param>
        /// <param name="lib"><see cref="DotNetLib"/> recipe configuration</param>
        /// <param name="dependentOn">Dependent task builder</param>
        /// <param name="dependee">Dependee task builder</param>
        /// <returns></returns>
        public static CakeTaskBuilder ConfigTaskFor(
            this CakeTaskBuilder builder,
            DotNetLib lib,
            CakeTaskBuilder dependentOn,
            CakeTaskBuilder dependee)
        {
            if (dependentOn is null)
            {
                throw new ArgumentNullException("Dependent task is null");
            }

            if (dependee is null)
            {
                throw new ArgumentNullException("Dependee task is null");
            }

            builder.ConfigTaskFor(lib, dependentOn.Task.Name, dependee.Task.Name);
            return(builder);
        }