We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Cannot save NotesText in XML CalculationMode.None

We discovered the NotesText will not save into the XML if we set the project.CalculationMode to None:

project.CalculationMode = CalculationMode.None;
var task = project.RootTask.Children.Add("Summary1");
var subtask = task.Children.Add("Subtask1");
subtask.Set(Tsk.NotesText, "SaveNote");
project.Save(savePath, global::Aspose.Tasks.Saving.SaveFileFormat.XML);

Is this a known issue?
Thanks

@MPMM,
It’s an unknown issue. Thank you for reporting.
As a temporary workaround you could set CalculationMode non Manual or Automatic
when setting Tsk.NotesText:

project.CalculationMode = CalculationMode.None;
var task = project.RootTask.Children.Add("Summary1");
var subtask = task.Children.Add("Subtask1");
project.CalculationMode = CalculationMode.Automatic;
subtask.Set(Tsk.NotesText, "SaveNote");
project.CalculationMode = CalculationMode.None;

The issue with ID TASKSNET-10570 was created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

Thanks vasiliysinitsyn for the quick reply, I’ve seen the issue status is resolved and I cannot see the fixes is in the June release notes. Can you please tell me what is the ETA to release this?

@MPMM,
sorry for the confusion. The fix will be released in version 22.7.