IsMilestone Flag - Not persisted on save

I recently downloaded (v 5.2.0.0) the trial (and registered for a license) and think I have an issue.



Using the following code to create a new project and then iterating the tasks the IsMilestone flag is always false (and is false in ms project 2010 as well):



Any help is appreciated. Thanks.



Dan.



private static void CreatePlainProject(string filename)

{

ProjectReader rdr = new ProjectReader();



Project prj = rdr.Read(new FileStream(“Project.mpp”, FileMode.Open));



prj.MinutesPerDay = 480;



Task rootTsk = new Task();

Task tsk1 = new Task(“TaskName1”);

tsk1.IsMilestone = true;

Task tsk2 = new Task(“TaskName2”);



tsk1.ActualStart = DateTime.Today;

tsk2.ActualStart = DateTime.Today.AddDays(30);



tsk1.Duration = new TimeSpan(5 * 8, 0, 0);

tsk1.DurationFormat = TimeUnitType.Day;

tsk2.Duration = new TimeSpan(10 * 8, 0, 0);

tsk2.DurationFormat = TimeUnitType.Day;



prj.RootTask = rootTsk;

rootTsk.Children.Add(tsk1);

rootTsk.Children.Add(tsk2);



Resource res = new Resource();

Resource res1 = new Resource(“r1”);

res1.Type = ResourceType.Work;



prj.Resources.Add(res);

prj.Resources.Add(res1);



prj.CalcTaskIds();

prj.CalcTaskUids();

prj.CalcResourceFields();

prj.CalcResourceIds();

prj.CalcResourceUids();

prj.UpdateReferences();



prj.Save(filename, Saving.SaveFileFormat.MPP);

}





private static void RenderTask(Task ParentTask)

{

foreach (Task task in ParentTask.Children)

{

string prefix = String.Empty;

prefix = prefix.PadRight(task.OutlineLevel, ‘-’);

Console.WriteLine(prefix + “********”);

Console.WriteLine(prefix + “Name : " + task.Name + " (” + task.ParentTask.Name + ") " + task.GUID);

Console.WriteLine(prefix + "Milestone : " + task.IsMilestone.ToString() );



RenderTask(task);

}

}

Hi Dan,


We are sorry for the inconvenience caused.

I have tested this issue and could observe it as you reported. I have logged it in our issue tracking system as: TASKS-33304 for further investigation and resolution by our development team. Once the issue is fixed and solution is available, we’ll update you here via this thread.

Thanks for the quick reply.



Are you able to give an indication of resolution time?



I won’t be able to provide a business case for purchase without this feature working in a POC.



Dan.

Hi Dan,


As you can see from the Ticket status attached to this thread, the issue has already been resolved. I’ll discuss the availability of the fixed version with our development team and will update you here accordingly then. It won’t take much time to get back to you and your patience till then is appreciated.

That is the type of reply I like to see! Many Thanks.



Dan,


I would like to share with you that this functionality was working in the previous version of Aspose.Tasks for .NET 5.1.0. Only in the latest version, that supports MSP 2013 format now, this functionality was broken, which has been fixed now.

The fixed version is planned to be included in the upcoming version of Aspose.Tasks for .NET 5.3.0. Once the fixed version is available, you’ll be notified here automatically.

Very good (I am at MSP 2010), I’ll grab the 5.1 dlls and do the POC with that.







The issues you have found earlier (filed as TASKS-33304) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.

The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.