Writing Updated Task Data to MPP

With Aspose.Tasks for .NET it is possible to update tasks and then write the updated data back to a Microsoft Project MPP file.

Updating Task Data

The following code snippet shows how to update a project’s task data and write it back to the MPP file. The step involved in this activity are:

  1. Create an instance of the Project class.
  2. Load the source MPP file.
  3. Create a Task and add it to the root task.
  4. Update the task parameters such as Deadline, NotesText, etc.
  5. Add additional tasks to the root task.
  6. Save the project.

The following code finds a task’s original and external ID through the cross project.