Post-transform Component::logoFile : what's current dir?

Topics: Developer Forum
Jul 14, 2009 at 9:05 AM

Hello,

I wonder what's current dir for logo file in Post-transform Component configuration ?

I have the following config and my_logo.gif is in the same dir as .shfbproj file. But during build PostTransformComponent can't find logo file.

<component id="Post-transform Component" type="SandcastleBuilder.Components.PostTransformComponent" assembly="{@SHFBFolder}SandcastleBuilder.Components.dll">
    <colorizer stylesheet="{@SHFBFolder}Colorizer\highlight.css" scriptFile="{@SHFBFolder}Colorizer\highlight.js" copyImage="{@SHFBFolder}Colorizer\CopyCode.gif" />
    <logoFile filename="my_logo.gif" altText="" width="0" height="0" placement="left" alignment="left" />
</component>

With an absolute path it works fine.

Coordinator
Jul 14, 2009 at 7:13 PM

The current folder at build time is the working folder.  Any relative paths in the configuration are relative to the working folder.  Use the {@ProjectFolder} replacement tag in the value to reference the project folder (i.e. {@ProjectFolder}my_logo.gif).

Eric

 

Jul 15, 2009 at 8:56 AM

Thanks!