33
« on: February 19, 2011, 12:27:54 am »
I want to programmatically restore a package to an older baseline. From the Help File, it seems that DoBaselineMerge would be the way to do this (even though it is a restore, not a merge). So I have code that looks like this:
proj.DoBaselineMerge( PackageGuid, baselineGridView.Rows[beforeRow].Cells["guid"].Value.ToString(),
"<Merge><MergeItem guid=\"RestoreAll\" /></Merge>", null );
When this code runs, EA does "something" (Baseline Compare utility comes up and runs) but when it is complete, my package looks like it always did. [A manual compare to the most recent baseline confirms this]. It doesn't seem to be updated (reverted) at all. I'm assuming the MergeInstructions are wrong. Can anyone help?