Strange build behavior

Topics: User Forum
Jan 15, 2011 at 8:12 PM

I am using Sandcastle Help File Builder 1.8.0.3 and Sandcastle 2.4.10520 and the last time I used them successfully was early 2010.  I went back to same last working project and now when I build, I get incorrect results in the resulting help file.  For example images are no longer centered and lists are incomplete and show up as Unknown List Class.  For the image centering example, the code in my aml source file looks like this:

<?xml version="1.0" encoding="utf-8"?>
<topic id="0e270a0e-35bd-421d-ba19-af277accfedc" revisionNumber="1">
  <developerConceptualDocument xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink">
    <introduction>
    <mediaLink>
 <caption placement="before">Picture 1</caption>
 <image placement="center" xlink:href="Picture 1" />
 </mediaLink>

When I look at the source code produced, for the correctly appearing output, I get this:

      </a>
 </span>
</td></tr></table><table id="gradientTable"><tr><td class="nsrBottom" background="../icons/gradient.gif" /></tr></table></div><div id="mainSection"><div id="mainBody"><div id="allHistory" class="saveHistory" onsave="saveAll()" onload="loadAll()" /><span style="color: DarkGray"> </span>
 
    <div class="introduction">
    <div class="mediaCenter"><div class="caption">Picture1</div><img src="../media/Picture1.jpg" /></div>

For the incorrectly appearing output I get this:

      </a>
 </span>
</td></tr></table><table id="gradientTable"><tr><td class="nsrBottom" background="../icons/gradient.gif" /></tr></table></div><div id="mainSection"><div id="mainBody"><div id="allHistory" class="saveHistory" onsave="saveAll()" onload="loadAll()" /><span style="color: DarkGray"> </span>
 
    <div class="introduction">
    <span class="media"><div class="caption">Picture 1</div><br /><img src="../media/Picture1.jpg" /></span>

Why was I getting <div class="mediaCenter"> and am now getting <span class="media"> ?

Nothing has changed in the project settings.  The only thing that has changed over time is that I installed VS2010 and Expression Web 4.  Have I stepped on some dll that Sandcastle needs?  Any ideas on what could be causing this?

 

Thanks,

Bruce

 

 

 

 

Coordinator
Jan 16, 2011 at 1:28 AM

It looks like you or someone else on the machine reinstalled Sandcastle and you lost the Sandcastle Styles patch changes.  Reapply the patch and it should start working as expected again.

Eric

 

Jan 17, 2011 at 12:47 PM

Eric,

That was it.  I vaguely remember doing the patch way back.  Thanks,

Bruce