Hello,

 

I’m new at all this, but I was trying the ndoc task and I verified my build file against the xsd I got the error that the tags <documenter> and <property> are invalid.

 

Any ideas?

 

Using xsd: http://nant.sf.net/release/0.85-rc2/nant.xsd

 

Build File:

 

<project name="test" basedir="." default="build" xmlns="http://nant.sf.net/release/0.85-rc2/nant.xsd">

      <tstamp property="build.date" pattern="yyyyMMdd_HHmmss" verbose="true" />

      <property name="output" value="BUILD\HelloWorld-${build.date}.exe"/>

      <target name="clean">

            <delete dir="BUILD" failonerror="false"/>

            <mkdir dir="BUILD"/>

            <delete dir="DOC" failonerror="false"/>

            <mkdir dir="DOC"/>

      </target>

      <target name="build" depends="clean">

            <vbc main="Form1" target="winexe" output="${output}">

                  <sources>

                        <include name="Form1.vb"/>

                  </sources>

                  <references>

                        <include name="System.dll"/>

                        <include name="System.Data.dll"/>

                        <include name="System.Drawing.dll"/>

                        <include name="System.Windows.Forms.dll"/>

                        <include name="System.XML.dll"/>

                  </references>

                  <resources prefix ="Form1" dynamicprefix="true">

                        <include name="**/*.resx"/>

                  </resources>

            </vbc>

      </target>

      <ndoc>

    <assemblies>

        <include name="${output}" />

   </assemblies>

   <summaries basedir="..">

       <include name="Project2.xml" />

   </summaries>

   <documenters>

       <documenter name="MSDN">

           <property name="OutputDirectory" value="DOC" />

           <property name="HtmlHelpName" value="Project2" />

           <property name="HtmlHelpCompilerFilename" value="hhc.exe" />

           <property name="IncludeFavorites" value="False" />

           <property name="Title" value="Documented through Nant" />

           <property name="SplitTOCs" value="False" />

           <property name="DefaulTOC" value="" />

           <property name="ShowVisualBasic" value="True" />

           <property name="ShowMissingSummaries" value="True" />

           <property name="ShowMissingRemarks" value="True" />

           <property name="ShowMissingParams" value="True" />

           <property name="ShowMissingReturns" value="True" />

           <property name="ShowMissingValues" value="True" />

           <property name="DocumentInternals" value="False" />

           <property name="DocumentProtected" value="True" />

           <property name="DocumentPrivates" value="False" />

           <property name="DocumentEmptyNamespaces" value="False" />

           <property name="IncludeAssemblyVersion" value="False" />

           <property name="CopyrightText" value="Suddenelfilio.com" />

           <property name="CopyrightHref" value="" />

        </documenter>

   </documenters>

</ndoc>

      <target name="run" depends="build">

            <exec  program="${project::get-buildfile-path}/${output}"/>

      </target>

</project>

 

 

The bold blue text is where it gets wrong…

 

Don’t mind the HelloWorld, as I said I’m just testing in preparation for my internship in two weeks.

 

Regards,

 

Filip Stas

Reply via email to