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.
--- Begin Message ---
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

--- End Message ---

Reply via email to