joniles / mpxj

Primary repository for MPXJ library
http://www.mpxj.org/
GNU Lesser General Public License v2.1
249 stars 104 forks source link

Task Baseline Duration is equals to Task Duration #406

Closed evertondevelop closed 1 year ago

evertondevelop commented 1 year ago

Let me explain, even differents dates (Baseline and Task) a both durations is equals when read MSProject and convert to XML. Look at images below: Screenshot 2022-12-09 090320 Screenshot 2022-12-09 090341

Is it really this way ? Or is a bug ?

Thank you for your dedication to library!

joniles commented 1 year ago

Could you add a sample MPP file (or email one to me)? Thanks!

evertondevelop commented 1 year ago

Sorry to reply after so long. I'll send MPP file in e-mail and a image below to exemplify: Screenshot 2022-12-26 111357 Screenshot 2022-12-26 112206 Screenshot 2022-12-26 112222

I guess that Task Duration and Baseline Duration must be different. But they're same. Baseline Duration 8hrs and Task Duration 24hrs.

joniles commented 1 year ago

Just had a quick look at the sample file you sent through.

When viewed in Microsoft Project the Duration and Baseline Duration for the task are the same value. Is this what you were asking about?

These values don't make sense when you look at the Start/Finish Baseline Start/Baseline Finish dates. It looks like MS Project doesn't enforce the relationships between the baseline fields once they have been set, so if they are manually edited they may well be inconsistent. If I set the baseline using the "Project->Set Baseline..." menu in MS Project the baseline values are consistent, and remain consistent when I update the Duration/Start/Finish values on the task.

Let me know if I've been looking at the wrong thing!