Re: help with Nunit2
"Achar, Saritha" <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nant.user |
|---|---|
| Message-ID | <503723B6C182D341AB5837B0CCE2F4FD02F40FFF@mdyptcmsx701.ad.moodys.net> |
I was able to resolve the issue. It was because a native dll that was referenced in the project was not being found. I chose to call the nunit-console executable in the build rather than use nunit2 task. From: Achar, Saritha [mailto:[email protected]] Sent: Monday, June 28, 2010 10:53 AM To: [email protected] Subject: [NAnt-users] help with Nunit2 Hi, I'm trying to execute tests in my assembly <projectName>.dll using the task <Nunit2>. I get the error 28-Jun-2010 10:02:17 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. 28-Jun-2010 10:02:17 The specified module could not be found. (Exception from HRESULT: 0x8007007E) My project uses .Net 3.5 and Nunit 2.5.5. I'm able to execute my tests successfully from visual Studio. I created a config file "<projectName>.dll.config" under the same folder holding the dll with the below content. I'm wondering if this is required as I'm not using an old version of Nunit. In any case it doesn't seem to work. Could somebody redirect me? Is the error saying that it could not find the project dll? <?xml version="1.0" encoding="utf-8" ?> <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.8.0" /> <bindingRedirect oldVersion="2.1.4.0" newVersion="2.2.8.0" /> </dependentAssembly> </assemblyBinding> </runtime> </configuration> Thanks, Saritha. ________________________________ The information contained in this e-mail message, and any attachment thereto, is confidential and may not be disclosed without our express permission. If you are not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution or copying of this message, or any attachment thereto, in whole or in part, is strictly prohibited. If you have received this message in error, please immediately notify us by telephone, fax or e-mail and delete the message and all of its attachments. Thank you. Every effort is made to keep our network free from viruses. You should, however, review this e-mail message, as well as any attachment thereto, for viruses. We take no responsibility and have no liability for any computer virus which may be transferred via this e-mail message. ----------------------------------------- The information contained in this e-mail message, and any attachment thereto, is confidential and may not be disclosed without our express permission. If you are not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution or copying of this message, or any attachment thereto, in whole or in part, is strictly prohibited. If you have received this message in error, please immediately notify us by telephone, fax or e-mail and delete the message and all of its attachments. Thank you. Every effort is made to keep our network free from viruses. You should, however, review this e-mail message, as well as any attachment thereto, for viruses. We take no responsibility and have no liability for any computer virus which may be transferred via this e-mail message. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ NAnt-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nant-users