I have tried the scenario using latest version Aspose.Tasks for .NET 18.5.0 and observed that output is similar to the expected output. You may please give it a try using your own template mpp file and share the feedback.
I have established the environment for checking your sample “output.mpp” in MSP 2016. I am afraid that in MSP 2016, the resource usage view is different than the image sent by you as “MPP18.5.png”. Snap shot is attached here where your MPP file is opened in MSP 2016. Could you please confirm that have you sent the same MPP file which is shown in MPP18.5.png?
I have checked the video and astonished to see different views of the same MPP using MSP 2016. For further investigation, could you please provide us the exact version number of MSP 2016 which you are using? Also please share the link to download the installer of the same for our analysis here.
We are working on this issue, however in the meanwhile we need you to please use the attached template file in your project, create both XML and MPP files using your sample code and view the ResourceUsage for both XML and MPP. Here we are getting correct ResourceUsage in XML output file using attached template file. However we are not getting proper output in MPP file. If you also get correct output using XML file, we will log an issue for similar MPP output file with the attached template file.
Using the template file (Blank2010.mpp) the result was the same.
In XML the information is correct. But MPP does not.
Attached is the generated files: Files2.zip (49.1 KB)
Thank you for providing the feedback. We are analyzing the available data and following are the concerns. In your template file, calendar working hours are 9 am to 6 pm where as in your code sample you are using 8 am as start time in timephased data as follows:
td.Start = new DateTime(2018, 1, 1, 8, 0, 0);
Could you please clarify, is it done intentionally or is it some typo mistake?
We request you to open your output MPP file on some other system and observe the ResourceUsage because we could not re-produce this view in our environment.
You may also open your MPP output file in MSP and save it as XML using MSP. Open this XML file in notepad and observe the timephased data. If it contains distributed data, then it seems to be some view setting issue in your MSP. Please send us the saved XML file as well for our analysis.
Once your feedback is received, we will proceed accordingly.
I have logged an issue under Id:TASKSNET-2450 which is for difference in distributed values between XML and MPP file using your original sample code in first post and template file Blank2010.mpp provided by us. In this issue, the MPP file contains multiple distributed values (5 in number) as shared by me during analysis.
Another investigation ticket is logged where issue of single value 5 in MPP is noted in your environment instead of 5 values under Id:TASKSNET-2451 .
We will investigate these logged issues thoroughly on their turn and share the feedback once ready. Thank you for your patience in this regard.
Thank you for contacting Aspose support team again. Both the issues logged under ticket Ids TASKSNET-2450 and 2451 are resolved and will be part of our incoming release in the mid of June, 2018. You will be automatically notified once new version is released and publicly available for download.