Project2.mpp - is empty Microsoft Project 2013 file, the default settings.
can't set values for extended fields Duration1-10
can't set values for extended fields Duration1-10
Aspose.Tasks.License license = new Aspose.Tasks.License();
license.SetLicense("Aspose.Tasks.lic");
Project newProject = new Project("Project2.mpp");
Task task = newProject.RootTask.Children.Add(@"test");
ExtendedAttribute extendedAttribute = new ExtendedAttribute
{
FieldId = ((int) ExtendedAttributeTask.Duration1).ToString(),
Value = "PT16H0M0S",
DurationFormat = TimeUnitType.Day
};
task.ExtendedAttributes.Add(extendedAttribute);
newProject.Save("Project4.mpp", SaveFileFormat.MPP);
newProject.Save("Project4.xml", SaveFileFormat.XML);
Use the values in different formats, always getting 9175,17 h in mpp file.
For xml correctly imported when opening Microsoft Project 2013