Thank you for considering Aspose.Tasks.
With respect to your query, you can change the start date of a task and all other tasks will be rescheduled accordingly. Please have a look at the following sample code for your reference and let us know if you have any other query/inquiry in this regard.
Project project = newProject(“ProjWith3TasksMan.xml”);
Task tsk = project.GetTaskById(1);
Console.WriteLine("Start Date: " + tsk.Start);
tsk.Start = tsk.Start.AddDays(1);
Thank you for your reply. I tried your advice, but “without success”.
In attached file is my original project created by MS Project 2010.
(See uploaded file: OneParent.xml in MyTestProject.zip )
But when I read the rewrite file using followed code:
Aspose.Tasks.Project project = new Aspose.Tasks.Project(“OneParent.xml”);
var task = project.GetTaskByUid(2);
var durUnit = project.MinutesPerDay / 60;
task.Start = task.Start.AddDays(7);
(See uploaded file: OneParent_Rewrite.xml in MyTestProject.zip )
After reading this file in MS Project it looks without changes.
Start and Finish dates have original values and property ‘ConstraintType’ is changed,
as well as items: 'TotalSlack and ‘FinishSlack’ too.
Why is this so? Where possible difficulty?
Thanks and BR
Thank you for contacting Aspose support team.
I have analyzed the code and sample project file. I would like to share that all the tasks in your project are manually scheduled therefore you are not observing any change there. Could you please test your sample code with the attached file containing auto scheduled tasks and let us know your feedback?