2011-08-22 50 views
0

使用.NET Framework 3.5,我有nant -0.91-alpha2,它支持框架3.5,但在嘗試構建文檔時出現以下錯誤。NDOC錯誤構建文檔。

Error building Documentation. 
     Object reference not set to an instance of object. 
       Object reference not set to an instance of object 

文檔是由以下原因產生:

<target name="Documentation"> 
    <property name="nant.settings.currentframework" value="net-3.5"/> 
    <ndoc> 
    <assemblies> 
     <include name="Release\Project.dll" /> 
    </assemblies> 
    <summaries> 
     <include name="Release\Project.XML" /> 
    </summaries> 
    <documenters> 
     <documenter name="MSDN"> //MSDN properties 
     </documenter> 
    </documenters> 
    </ndoc> 
</target> 
+0

你是如何調用NDoc的? –

+0

<目標名稱= 「文檔」> <屬性名= 「nant.settings.currentframework」 值= 「淨-3.5」/> <包括名稱= 「推出\ Project.dll」/> <包括名稱= 「推出\ project.xml中」/> <文檔管理器名稱= 「MSDN」> // MSDN性質 RTN

+0

如果您從任務調用NDoc可執行文件會發生什麼情況? – johnluetke

回答

0

NDoc的並不在沙塔支持.NET 3.5

+0

信息:使用NAnt 0.91和net-4.0 – hfrmobile

+0

Info2:當程序集包含泛型時,SandCastle可能因爲NAnt 0.92仍然不支持泛型,並且只是在原始海報中提到的例外情況下失敗了,所以更好的選擇。 – hfrmobile

+0

順便說一句,正確的拼寫:Sandcastle(http://sandcastle.codeplex.com/) – hfrmobile