Cross Project Predecessors

Microsoft Project lets users link tasks within the current project, or to external projects. Cross project predecessors are predecessors from another project. Aspose.Tasks for .NET supports these too.

Working with Cross Project Predecessor Tasks

In Aspose.Tasks for .NET the CrossProjectName and IsCrossProject properties exposed by the TaskLink class are used to handle cross project predecessors.

To manage cross project predecessor tasks in Microsoft Project one can select Links between Projects from the Tools menu.

Getting cross project predecessor tasks using Aspose.Tasks

Here, we shall display predecessor / successor task traversing the task links in the project.

1Project project = new Project("New Project.mpp");
2
3// Check cross project task links
4foreach (TaskLink taskLink in project.TaskLinks)
5{
6    if (taskLink.IsCrossProject)
7        Console.WriteLine(taskLink.CrossProjectName);
8}
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.