I all,
I've just installed the very last version of mono and
I've some troubles with the <nuint2> task...
Here below is the error message I get:
** (/usr/local/share/NAnt/bin/NAnt.exe:15021): WARNING **: Could not
find assembly nunit.framework, references
from /home/genius/projects/gekkota/build/
gekkota-0.4-debug/lib/Gekkota.Tests.dll (assemblyref_index=2)
Major/Minor: 2,2
Build: 0,0
Token: 96d09a1eb7f44a77
System error: No such file or directory
BUILD FAILED
/home/genius/projects/gekkota/src/Gekkota/Gekkota.build(207,6):
Failure executing test(s). If you assembly is not built using NUnit
version 2.2.0.0, then ensure you have redirected assembly bindings.
Consult the documentation of the <nunit2> task for more information.
Assembly 2 referenced from
assembly /home/genius/projects/gekkota/build/
gekkota-0.4-debug/lib/Gekkota.Tests.dll not found
Total time: 5.7 seconds.
Note that I've copied all the nunit*.dll assemblies from
/usr/local/share/NAnt/bin/lib/mono/2.0 to /usr/lib/mono/2.0, and
as you can see here below, my build file should be correct:
...
<property
name="target.framework"
value="${framework::get-target-framework()}" />
<property
name="assembly.dir"
value="${framework::get-assembly-directory(target.framework)}" />
...
<target
name="test"
depends="build"
description="Tests the current configuration">
<csc
target="library"
output="${build.dir}/lib/${assembly}.Tests.dll">
<sources
basedir="${assembly}.Tests"
failonempty="true">
<include name="*.cs" />
</sources>
<references>
<include name="${build.dir}/lib/${assembly}.dll" />
<include name="${assembly.dir}/nunit.framework.dll" />
</references>
</csc>
<nunit2>
<formatter type="Plain" />
<formatter
type="Xml"
usefile="true"
extension=".xml"
outputdir="${build.dir}/test-results" />
<test
assemblyname="${build.dir}/lib/${assembly}.Tests.dll" />
</nunit2>
</target>
Any idea?
j3d.
--
----------------------------------------
Giuseppe Greco
::agamura::
phone: +41 (0)91 604 67 65
mobile: +41 (0)79 602 99 27
email: [EMAIL PROTECTED]
web: www.agamura.com
----------------------------------------
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
nant-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-developers