I am having a problem with tasks duration display.
The problem happens when I define a task as ‘fixed duration’ and it doesn’t have any assignment: just a single fixed duration task.
When I open the xml in MS project, the grantt diagram show a one day duration task (shown in the picture). But when I don’t define my task type, its duration is well displayed! (the other picture)
I would like to know why and how to get a normal displayed task?
In my project, I have to use the project.RootTask.Children.Add method and not the addTasks method.
Project project = new Project();
project.StartDate = new DateTime(2010, 5, 1);
taskFixedDuration.Type = TaskType.FixedDuration;
taskFixedDuration.Start = new DateTime(2010, 5, 24);
taskFixedDuration.ConstraintDate = taskFixedDuration.Start;
taskFixedDuration.ConstraintType = ConstraintType.MustStartOn;
taskFixedDuration.Duration = new TimeSpan(24, 0, 0);
taskFixedDuration.DurationFormat = TimeUnitType.Day;
asmt1.Start = new DateTime(2010, 5, 24);
asmt1.RemainingWork = new TimeSpan(24, 0, 0);