BUILDASSEMBLER : error : CodeBlockComponent

Topics: User Forum
Apr 5, 2011 at 1:19 PM

Hi,

    I am getting following error while building a project via SHFB. My assembly is built in .Net v 4.0.

      In the project properties i have  setup the framework version to 4.0

    BUILDASSEMBLER : error : CodeBlockComponent: A nested <code> tag must contain a "source" attribute that specifies the source file to import       [C:\SandCastle\Scripting\Help\Working\BuildReferenceTopics.proj]

    Last step completed in 00:00:56.6106
</buildStep>
<buildStep step="Failed">

SHFB: Error BE0043: Unexpected error detected in last build step.  See output above for details.

Could you please suggest to avoid this error?

Thanks,
Vinoth

 

Coordinator
Apr 5, 2011 at 2:51 PM

Look back a few lines in the log to see the member in which the build failed.  As noted in the error, you've got a <code> element nested within another <code> element in the XML comments for that member.  When this occurs, the code block component expects the nested element to specify a source attribute to define from where to import a block of code.  If this is not your intended use, you may just need to encode the angle brackets so that it passes through as content.

Eric