2011-08-22 72 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