[Mono-list] nunit gives me error on mono but not on asp.net
GusPS
mono at gustavospadari.com.ar
Fri Mar 9 10:16:13 EST 2007
Hello, I'm having a problem running nant's (0.85) nunit2 task.
I use ubuntu 6.10 and i've installed nant, nunit and mono using apt-get.
When I run nunit2 task (with verbose option) to execute my tests, this error
happend:
NAnt.Core.BuildException:
/home/development/projects/sm/trunk/code/projects/Tests/Tests.build(78,10):
Failure executing test(s). If you assembly is not built using NUnit version
2.2.8.0, then ensure you have redirected assembly bindings. Consult the
documentation of the <nunit2> task for more information. --->
System.IO.FileNotFoundException: System : System
It seems that nant or nunit could not find the System assembly. I'm not sure
about that.
If I run it on windows, it works ok.
My target is:
<target name="runtests" depends="debug" description="Ejecuta los tests
unitarios">
<nunit2 verbose="true">
<formatter type="Plain" />
<test assemblyname="${target}/${project::get-name()}.dll"
appconfig="${project::get-name()}.dll.config" />
</nunit2>
</target>
And my config has:
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="nunit.framework"
publicKeyToken="96d09a1eb7f44a77" culture="Neutral" />
<bindingRedirect oldVersion="2.0.6.0" newVersion="2.2.8.0"
/>
<bindingRedirect oldVersion="2.1.4.0" newVersion="2.2.8.0"
/>
</dependentAssembly>
</assemblyBinding>
</runtime>
Thanks four your help.
Gus.
--
View this message in context: http://www.nabble.com/nunit-gives-me-error-on-mono-but-not-on-asp.net-tf3376210.html#a9396113
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list