Hi, I have a trouble in creating a task. I want create task without start and end date.
var license = new License();
Stream licenseStream =
Assembly.GetExecutingAssembly().GetManifestResourceStream(
"Aspose_test_Solution.Aspose.Tasks.lic");
license.SetLicense(licenseStream);
var project = new Project();
var task = project.RootTask.Children.Add("Task without dates");
// we need have empty task without start date , end date and duration, just empty task
task.Set(Tsk.DurationText, string.Empty); // don't clean duration Why and how do it?
task.Set(Tsk.FinishText, string.Empty);
task.Set(Tsk.ActualFinish, DateTime.MinValue);
task.Set(Tsk.ActualStart, DateTime.MinValue);
task.Set(Tsk.StartText, string.Empty);
project.Save("a2.XML", SaveFileFormat.XML);
But I get Task with duration 1 and not empty start and end date