I am using mono 1.1.1, 
NAnt 0.85 (Build 0.85.1724.0; net-1.0.win32; dev; 09/20/2004), 
and nunit 2.2.

Attempting try out invocation of nunit from nant2, with trivial build
script:

<?xml version="1.0" ?>
<project name="tfixture" default="build">
    <target name="build">
        <csc target="library" output="tfixture.dll">
            <sources>
                <include name="tfixture1.cs"/>
            </sources>
            <references>
                <lib>
                    <include name="/home/jrodman/project/csharp/NUnit/bin/"/>
                </lib>
                <include name="nunit.framework.dll" />
                <include name="nunit.core.dll"/>
            </references>
        </csc>
    </target>
    <target name="test" depends="build">
        <nunit2>
            <formatter type="Plain" />
            <test assemblyName="tfixture.dll"/>
        </nunit2>
    </target>
</project>

NAnt reports 

Invalid element <nunit2>. Unknown task or datatype.:
NAnt.Core.BuildException: /home/jrodman/project/csharp/nunit-play/default.build(18,10):
Invalid element <nunit2>. Unknown task or datatype.
in <0x005c1> NAnt.Core.Target:Execute ()
in <0x000ab> NAnt.Core.Project:Execute (string,bool)
in <0x00226> NAnt.Core.Project:Execute ()
in <0x00155> NAnt.Core.Project:Run ()


I have the various NAnt.NUnit dlls in the NAnt bin directory.  This directory
is on the MONO_PATH.  nunit2 tasks are not recognized.

What is the next step?

-josh


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to