When using the method UpdateProjectWorkAsComplete (Aspose.Tasks for .NET) the value calculated for the “% work complete” is different than that calculated using the Update Project option inside Microsoft Project. The “% complete” value is being calculated correctly.
TESTES.zip (33.8 KB)
Using the following code:
Project project = new Aspose.Tasks.Project(@"C:\temp\TESTE.mpp"); project.UpdateProjectWorkAsComplete(new DateTime(2018, 11, 18), false); project.Save(@"C:\temp\UPDATED.mpp", SaveFileFormat.MPP);
The result is this:
image.png (46.4 KB)
Using the native option from MS Project, updating to the same date, this is the result:
image.png (48.7 KB)
I don’t know if this is a bug or if I am doing something wrong.
We tested with versions 17.9 and 18.11 both produced the same results.
Thanks for your help,