문제

I would really like to add an image into the Sandcastle generated help file for a program.

I've followed the Sandcastle FAQ as closely as I can, and I still can't get the image to show up, although I have managed to get a little image placeholder to show up: Image Placeholder.

I'm fairly certain that the image path is correct, because when I had an incorrect path, there was an "X" placeholder instead of this one.

I've tried setting the BuildAction for the image to both Image (the default) and Content (recommended by the Sandcastle FAQ).

Here's what the XML comment looks like: <img scr="art/Image.png"></img>

I feel like I've done everything I can to get this to work, and the image still won't show up. If anyone has any other ideas or suggestions, I would really appreciate it.

도움이 되었습니까?

해결책

The art directory needs to be relative to where the help file is generated. Typically the html dir. Like so:

[Root]
  \
   [Art]
   |
   [HTML]
   |
   ...

In this case:

/// <summary>Super Great Method</summary>
/// <remarks>A picture: <br />
/// <img src="../art/myImage.jpg" />
/// </remarks>

This discussion might also prove useful to you MSDN Discussion

When adding an image to a conceptual help file, this method apparently works.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top