Mucho más para contar sobre NDoc, no tengo. Además supongo que todo el mundo lo conoce (y lo utiliza :d).
Sin embargo, me ha sucedido algo bastante raro mientras lo utilizaba. Estaba generando un proyecto com muchos assemblies dentro del mismo y me apareció el siguiente error:


An error occured while trying to build the documentation.
  Exception: NDoc.Core.DocumenterException
This document already has a DocumentElement node.
  Exception: System.InvalidOperationException
This document already has a DocumentElement node.
  Exception: NDoc.Core.DocumenterException at NDoc.Documenter.Msdn.MsdnDocumenter.Build(Project project) at NDoc.Gui.BuildWorker.ThreadProc()
  Exception: System.InvalidOperationException at System.Xml.XmlDocument.IsValidChildType(XmlNodeType type) at System.Xml.XmlDocument.AppendChildForLoad(XmlNode newChild, XmlDocument doc) at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at NDoc.Documenter.Msdn.MsdnDocumenter.Build(Project project)


No encontré mucha ayuda en internet, ni tampoco en los foros. Pero se me ocurrió probar, generar la documentacion con la version vieja de NDoc (v1.2), y … funcionaba !!!
Todavía no se muy bien que causó este error, pero por suerte la version 1.2 de NDoc, me saco de apuros 😀

Saludos

Leave a comment

Discover more from El Bruno

Subscribe now to keep reading and get access to the full archive.

Continue reading