Creating Task Baseline


A baseline is a set of various conditions or reference points used to evaluate project performance over time. The TaskBaseline class can be used to create a baseline.

Creating a Task Baseline

A task baseline can be created using the default constructor for the TaskBaseLine class as shown below.

1Project project = new Project();
3// Creating TaskBaseline:
4Task task = project.RootTask.Children.Add("Task");
6// Set baseline for specified tasks and entire project
7project.SetBaseline(BaselineType.Baseline, new Task[] { task });
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.