Determine Task Schedule Conflict

Checking Task Schedule Conflicts

In project management, a task may sometimes violate scheduling rules, causing conflicts or inconsistencies in the timeline. For example:

Aspose.Tasks for .NET provides a simple way to identify such issues programmatically.

Using the Warning Field

The Tsk class exposes the Warning field.

Example: Detecting Task Conflicts

The following code example shows how to check the Warning field for tasks and detect scheduling problems:

1Project project = new Project("New Project.mpp");
2Task task = project.RootTask.Children.GetById(1);
3Console.WriteLine(task.Get(Tsk.Warning));

Key Notes

FAQ

Q: Does Warning explain what the exact conflict is?

Q: Can warnings be cleared automatically?

Q: Is this compatible with both MPP and XML formats?

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.