2013-03-22 65 views
1

我想将文件的引用添加到类的xml注释中。我可以这样做:关于文件的XML注释

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

我怎样才能使用相对路径文件?

+1

相对于什么? – 2013-03-22 14:33:03

+1

我不知道你的要求是什么 – 2013-03-22 14:36:00

+0

相对于我的项目(也许bin \ Debug) – user1590561 2013-03-22 14:37:41

回答

1

Sandcastle路径是相对于工作文件夹(在设置中设置的输出路径下的.\Working文件夹)。要指定相对于您的项目的路径,请以{@ProjectFolder}为前缀。例如:

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

你可以在这里找到这样更换标签的完整列表:

Customizing the Build Process - Replacement Tags


你知道吗,你可以在文档中使用href取代cref标签:

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

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