Title: Message
Hi,
 
I have checked a task into NAntContrib that wraps the astyle (artistic style: http://astyle.sourceforge.net) code formatter.  It also has a custom style target that styles code according to the NAnt coding conventions (http://sourceforge.net/docman/display_doc.php?docid=6080&group_id=31650) and can be invoked in your build using the following sample target:
 
    <target name="nant.style" description="Style all of the c-sharp files.">
        <astyle     style="NAnt"
                        cleanup="true">
            <fileset>
                <includes name="OneFileTest.cs" />
            </fileset>
        </astyle>
    </target>
You will have to download the astyle binary and place it in your path.  The link to the latest binary is here:
 
If you have any issues or have any suggestions please let me know.
 
 
 
Cheers,
 
Clayton

Reply via email to