netsql wrote:
repost
me 3. I am getting same error using latest build.

How do I get around this?

tia,
.V

ps: I use msbuild to build, and now I want to unit test -- and later add all to cruise control.

------------------------------------------------------------------------

Subject:
Nunit2 Task
From:
"Kevin Kirkpatrick" <[EMAIL PROTECTED]>
Date:
Wed, 19 Oct 2005 09:16:40 -0700

Newsgroups:
gmane.comp.windows.dotnet.nant.user


I have a simple question. I am getting this error using NAnt 0.85 (Build 0.85.1932.0; rc3; 4/16/2005) along with Nunit 2.2.0.0.

In the Nant documentation it says to add assembly binding to a test config file. But I am building against the 2.2.0.0 nunit.framework.dll. Can anyone please provide some assistance? Thank you very much.


BUILD FAILED

D:\build\npa\npa.build(349,5):
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.:
NAnt.Core.BuildException: D:\build\npa\npa.build(349,5):
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. ---> System.IO.FileNotFoundException: File or assembly name Esurance.PolicyAccounting.CoreDataService.Data.Test.test, or one of its dependencies, was not found.
File name: "Esurance.PolicyAccounting.CoreDataService.Data.Test.test"

>From http://nant.sourceforge.net/release/latest/help/tasks/nunit2.html
In order to run a test assembly built with NUnit 2.0 or 2.1 using the NAnt <nunit2> task, you must add the following node to your test config file : <configuration>
    ...
    <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.0.0" /> <bindingRedirect oldVersion="2.1.4.0" newVersion="2.2.0.0" /> </dependentAssembly>
        </assemblyBinding>
    </runtime>
    ...
</configuration>



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl





-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to