2009-08-15 78 views
2

我正在使用Sandcastle幫助文件生成器GUI,我似乎無法在我的註釋中獲取代碼示例以顯示在幫助文件輸出中。如何使用Sandcastle幫助文件生成器獲取幫助文件中顯示的代碼示例?

我生成幫助1.x和MSDN風格的HTML文檔。

的例子看起來像我的代碼如下:

/// <summary> 
    /// Connects to the server 
    /// </summary> 
    /// <example> Connecting to localhost 
    /// <code> 
    /// Client client = new Client(true); 
    /// EndPoint localhost = new IPEndPoint(IPAddress.Loopback, 8888); 
    /// client.Connect(localhost); 
    /// </code> 
    /// </example> 

我需要配置一些項目屬性是未知的我嗎?

回答

3

答案是你不需要做任何事情。在文檔來源我已經添加了我的.csproj,並且這是使用bin/Debug中未被重建的文件。所以我的答案是將文檔來源更改爲bin/Release下的文件。愚蠢的,我知道。如果其他人有同樣的問題,我會在這裏留下。