4

I want to add reference to file to xml comment for class. I can do it so:

/// <summary>
/// Condition with the content of the text <a href="file:///d:/a.jpg">file</a>
/// </summary>

How I can to use relative path to file?

3
  • 1
    I have no idea what your requirement is Commented Mar 22, 2013 at 14:36
  • relative to my project (maybe bin\Debug) Commented Mar 22, 2013 at 14:37
  • I can recommend considering how links are defined in <a> xml nodes (absolute and relative) here and then try to incorporate them in source code xmlnews.org/docs/xml-basics.html Commented Mar 22, 2013 at 14:38

1 Answer 1

1

In Sandcastle paths are relative to the working folder (the .\Working folder under the output path set in the settings). To specify a path relative to your project, prefix it with {@ProjectFolder}. For example:

<a href="{@ProjectFolder}/a.jpg">File</a>

You can find a complete list of such replacement tags here:

Customizing the Build Process - Replacement Tags


Did you know you can replace cref with href in the documentation tags:

<see href="http://www.example.com/">Example</see>

<seealso href="http://www.example.com/">Example</seealso>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.