0

以下のnantスクリプトでこのエラーが発生しました。誰かが助けてくれます:(

エラーは:ネストされたビルド要素「参照」をサポートしていません。

以下のコードを見つけてください:

<?xml version="1.0"?>
<project name="NAnt Examples" default="build">
    <target name="*">
        <nant target="${target::get-current-target()}">
            <buildfiles>
                <include name="**/*.build" />
                <references>
                <include name="C:/Program Files/NAnt/examples/Microsoft.Practices.EnterpriseLibrary.Common.dll" />
                </references>
                <!-- avoid recursive execution of current build file -->
                <exclude name="${project::get-buildfile-path()}" />

                <exclude name="ScriptTask/script-sample.build" />
                <exclude name="Solution/**/*.build"/>
            </buildfiles>
        </nant>
    </target>
</project>
4

1 に答える 1

0

このエラーが発生するの<buildfiles>は、通常の要素がその子要素になることを<fileset>サポートしていないためです。<references>詳細については、<nant>タスクの説明を参照してください。

于 2012-06-06T09:05:13.397 に答える