TaskLink don't affect the dates from successor task

I’ve experienced an issue working with Aspose 17.1.

The issue I can simulate with the attached file with the following procedures:

    1. Take Task A (Atividade A);
    1. Take Task B (Atividade B);
    1. Set A as predecessor of B;
  1. Verify the start of B after finish of A.

The source code and the PERA 0110-02-201709-11.mpp are attached.

[TestMethod]
public void Case022()
{
    using (var stream = File.Open(@"F:\PERA 0110-02-201709-11.mpp", FileMode.Open))
    {
        var project = new Project(stream);
        var atividadeATask = project.RootTask.Children.GetById(4);
        var atividadeBTask = project.RootTask.Children.GetById(5);
        Assert.IsTrue(atividadeATask.Get(Tsk.Finish) > atividadeBTask.Get(Tsk.Start));
        project.TaskLinks.Add(atividadeATask, atividadeBTask, TaskLinkType.FinishToStart, project.GetDuration(0));
        // THE ERROR OCCURS HERE! The start of Task B isn't after the finish of Task A.
        Assert.IsTrue(atividadeATask.Get(Tsk.Finish) <= atividadeBTask.Get(Tsk.Start));
    }
}

Hi Paulo,


Thank you for contacting Aspose support team.

This issue is reproduced and logged under Id: TASKSNET-1804 for further investigation by the product team. You will be automatically notified once any update is received in this regard.

@paulo.bandeira,

We have just released Aspose.Tasks for .NET 17.7 version where this issue has been fixed. Please download this latest version for testing at your end and let us know if we can be of any additional help to you.