I’m trying to run your examples from GitHub examples
and I can’t get it work correctly.
Example VS solution (.sln) has references to v8.5.0 so I updated to the latest version v9.3.0 using Nuget Package Manager and also tried doing manually with same results.
Based on your example ‘MPPFileUpdate.Run()’, I have the following code:
Project project = new Project();
Task task = project.RootTask.Children.Add(“Task1”);
task.Set(Tsk.Start, new DateTime(2012, 8, 1));
task.Set(Tsk.Finish, new DateTime(2012, 8, 5));
and I get the following output:
8/3/2000 8:00:00 AM
8/5/2000 12:00:00 AM
So… what I see here is that you can’t set “Start” nor “Finish” properties.
By the way, in the expected output you may notice that I didn’t write it with hours format because I’m not sure how it is supposed to be created, anyway I expect that dates should be set exactly as the parameter.
Please let me know how to set those properties correctly.
Notes: I get the same results running your example ‘MPPFileUpdate.Run()’ using v8.5.0 and v9.3.0.