2013-03-22 50 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>