We are trying to upgrade our aspose.tasks from version 19.3 to 22.3. Using version 19.3, we are able to successfully export the .mpp file multiple times. However, using version 22.3 22.3, we are only able to export the .mpp once. Our logic checks to see if the .mpp file exists when exporting and if so, it will use that file instead of generating new. In version 22.3, the aspose.tasks.taskbaselinecollection count is always zero when retrieving from the existing .mpp file. In version 19.3, the count is always 1. The exact same code works successfully version 19.3 but doesn’t work in 22.3 I am new to this exporting process using aspose so hopefully my explanation makes sense. Can you verify if this is a bug in your software or has something changed in regards to retrieving the baselinecollection?
Just to add some extra information to this post: When we are in update mode, we are using the following statement to retrieve the task.
_myTask = _myMSProject.RootTask.Children.GetByUid(_uid);
The baseline collection count is always 0 in version 22.3 but it evaulates to 1 in 19.3. The program later fails because we are trying to get a list of the baselines using _mytask.Baselines.tolist() but there are none available in 22.3.