Re: [nant-dev] NUnit Error With NAnt...
Scott, Yes, the fork option was removed and made the default(sort of). Now (as of oct I think) nunit2 tests create a new appdomain to execute in. Indeed, this should be how it always works, now (assuming nobody undid the changes I made last time to it g). It's worthwhile to notice that this is essentially what NUnit 2.0 own console and GUI drivers do, too. -- Tomas Restrepo [EMAIL PROTECTED] --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ Nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] NUnit Error With NAnt...
True. It took me a little while to see this. But now I understand things much better. And I think I better understand where some of the issues are coming from. In addition to the changes you made, I think we need to set the environment working/current directory to the nunit2 basedir. This will allow tests to open files and work with IO related operations as they might expect. Then after the task finishes, we can set the current directory back. This is a process level change, so we kinda have to be careful. - Original Message - From: Tomas Restrepo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, January 19, 2003 5:41 PM Subject: Re: [nant-dev] NUnit Error With NAnt... Scott, Yes, the fork option was removed and made the default(sort of). Now (as of oct I think) nunit2 tests create a new appdomain to execute in. Indeed, this should be how it always works, now (assuming nobody undid the changes I made last time to it g). It's worthwhile to notice that this is essentially what NUnit 2.0 own console and GUI drivers do, too. -- Tomas Restrepo [EMAIL PROTECTED] --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ Nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ Nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] NUnit Error With NAnt...
Yeah, I'm there with you, maybe some documentation would solve this problem. Also, maybe this isn't the optimal solution, but we could add an option to change the current directory if you want to have the current env dir set. As long as we differ from the NUnit console/gui, there will be confusion and complaints. - Original Message - From: Tomas Restrepo [EMAIL PROTECTED] To: Scott Hernandez [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, January 19, 2003 6:55 PM Subject: Re: [nant-dev] NUnit Error With NAnt... Hi Scott, True. It took me a little while to see this. But now I understand things much better. And I think I better understand where some of the issues are coming from. In addition to the changes you made, I think we need to set the environment working/current directory to the nunit2 basedir. This will allow tests to open files and work with IO related operations as they might expect. Then after the task finishes, we can set the current directory back. This is a process level change, so we kinda have to be careful. Actually, I struggled with this while making my changes... the original NUnit2.0 code does this, I think, but I believe this is fundamentally wrong, and will actually end up hiding latent bugs. Let me put it this way: Any code that relies on the CurrentDir to be set to a specific value at application startup is fundamentally broken, and likely reveals the developer's not familiar with the real usage of the CurrentDir setting. If tests need to ensure the code has a known current directory before invoking the tested methods, they should explicitly set it themselves or on the tests StartUp() routine. -- Tomas Restrepo [EMAIL PROTECTED] --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ Nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ Nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] NUnit Error With NAnt...
Yep, I've actually done quite a bit with appdomains and loading/finding assemblies for the ShadowCopyFiles support I've recently added. But it does bring up another question as to what config file NUnit loads. You can also change these properties dynamically in code if you can get ahold of the appdomain that NUnit exists in. That may be the better approach. I'll do a little testing and see what I can find. - Original Message - From: Brant Carter [EMAIL PROTECTED] To: Scott Hernandez [EMAIL PROTECTED]; Sansone, Aaron [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 10:34 PM Subject: Re: [nant-dev] NUnit Error With NAnt... You might want to look at this article. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm l/cpconspecifyingassemblyslocation.asp I am pretty sure that the default is for it to look in the GAC and then to look in the current directory. You may have to specify your values in a nant.exe.config file (or possibly the nunit.exe.config file). I haven't confirmed this yet as I haven't ventured into NUnit/NAnt integration just yet. brant ... - Original Message - From: Scott Hernandez [EMAIL PROTECTED] To: Sansone, Aaron [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 4:48 PM Subject: Re: [nant-dev] NUnit Error With NAnt... We also have, and have had, the same problems with NAntContrib for a while. Here is some background. http://sourceforge.net/mailarchive/message.php?msg_id=2372560 If you find any solution, or have any ideas, please feel free send them around. I'm just now starting to look into it. :) - Original Message - From: Sansone, Aaron [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 2:18 PM Subject: [nant-dev] NUnit Error With NAnt... All, I have the latest snapshot (1/14) of NAnt and I am trying to create a test build script. Apparently the NUnit2 Testing task is looking for my Assembly in the NAnt installation directory. If I copy my Assembly to the C:\NAnt\bin directory, my test tasks are run. However, I don't belive that this is the intended way to run NAnt-NUnit tasks. Is there a way to force the NUnit task to look as a specific directory for my assembly? Here are my relevant build file entries. Notice that I am specifying the absolute path for the assembly. I've tried several permutations of the assembly location, but only when I placed it in the NAnt/bin directory did I have any success. Properties: property name=project.basedir value=C:/Projects/SpikeSolution/ property name=build.dir value=build/ property name=project.ClientExe.name value=SpikeWinClient/ NAnt Task: nunit2 basedir=${project.basedir}\${build.dir} test assemblyname=${project.basedir}\${build.dir}\${project.ClientExe.name}.exe / /nunit2 When I execute the script, I get the following Error: INTERNAL ERROR System.IO.FileNotFoundException: File or assembly name SpikeWinClient, or one of its dependencies, was not found. File name: SpikeWinClient at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, B oolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Ass embly locationHint, StackCrawlMark stackMark) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark stackMark) at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence as semblySecurity, StackCrawlMark stackMark) at System.AppDomain.Load(String assemblyString) at NUnit.Core.TestSuiteBuilder.Build(String assemblyName) at SourceForge.NAnt.Tasks.NUnit2.NUnit2Task.runTest(NUnit2Test test, EventLis tener listener) at SourceForge.NAnt.Tasks.NUnit2.NUnit2Task.ExecuteTask() at SourceForge.NAnt.Task.Execute() at SourceForge.NAnt.Target.Execute() at SourceForge.NAnt.Project.Execute(String targetName) at SourceForge.NAnt.Tasks.CallTask.ExecuteTask() at SourceForge.NAnt.Task.Execute() at SourceForge.NAnt.Target.Execute() at SourceForge.NAnt.Project.Execute(String targetName) at SourceForge.NAnt.Project.Execute() at SourceForge.NAnt.Project.Run() Fusion log follows: === Pre-bind state information === LOG: DisplayName = SpikeWinClient (Partial) LOG: Appbase = C:\NAnt\bin\ LOG: Initial PrivatePath = NULL Calling assembly : nunit.framework, Version=2.0.6.0, Culture=neutral, PublicKeyT oken=96d09a1eb7f44a77. === LOG: Policy not being applied to reference at this time (private, custom, partia l, or location-based assembly bind). LOG: Post-policy reference: SpikeWinClient LOG: Attempting download of new URL file:///C:/NAnt/bin/SpikeWinClient.DLL. LOG: Attempting download
RE: [nant-dev] NUnit Error With NAnt...
When running a NUnit2 test with the Nunit2 testrunner, current directory is the directory where the assembly is found, but this is not the case when using the nant nunit2 task. I have a test that reads a testfile, using a relative pathname. This test runs ok using the NUnit2 testrunner and fails the nunit2 task in the latest build of nant. Michael Arnoldus -Original Message- From: Brant Carter [mailto:[EMAIL PROTECTED]] Sent: 17. januar 2003 07:34 To: Scott Hernandez; Sansone, Aaron; [EMAIL PROTECTED] Subject: Re: [nant-dev] NUnit Error With NAnt... You might want to look at this article. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm l/cpconspecifyingassemblyslocation.asp I am pretty sure that the default is for it to look in the GAC and then to look in the current directory. You may have to specify your values in a nant.exe.config file (or possibly the nunit.exe.config file). I haven't confirmed this yet as I haven't ventured into NUnit/NAnt integration just yet. brant ... - Original Message - From: Scott Hernandez [EMAIL PROTECTED] To: Sansone, Aaron [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 4:48 PM Subject: Re: [nant-dev] NUnit Error With NAnt... We also have, and have had, the same problems with NAntContrib for a while. Here is some background. http://sourceforge.net/mailarchive/message.php?msg_id=2372560 If you find any solution, or have any ideas, please feel free send them around. I'm just now starting to look into it. :) - Original Message - From: Sansone, Aaron [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 2:18 PM Subject: [nant-dev] NUnit Error With NAnt... All, I have the latest snapshot (1/14) of NAnt and I am trying to create a test build script. Apparently the NUnit2 Testing task is looking for my Assembly in the NAnt installation directory. If I copy my Assembly to the C:\NAnt\bin directory, my test tasks are run. However, I don't belive that this is the intended way to run NAnt-NUnit tasks. Is there a way to force the NUnit task to look as a specific directory for my assembly? Here are my relevant build file entries. Notice that I am specifying the absolute path for the assembly. I've tried several permutations of the assembly location, but only when I placed it in the NAnt/bin directory did I have any success. Properties: property name=project.basedir value=C:/Projects/SpikeSolution/ property name=build.dir value=build/ property name=project.ClientExe.name value=SpikeWinClient/ NAnt Task: nunit2 basedir=${project.basedir}\${build.dir} test assemblyname=${project.basedir}\${build.dir}\${project.ClientExe.name}.exe / /nunit2 When I execute the script, I get the following Error: INTERNAL ERROR System.IO.FileNotFoundException: File or assembly name SpikeWinClient, or one of its dependencies, was not found. File name: SpikeWinClient at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, B oolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Ass embly locationHint, StackCrawlMark stackMark) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark stackMark) at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence as semblySecurity, StackCrawlMark stackMark) at System.AppDomain.Load(String assemblyString) at NUnit.Core.TestSuiteBuilder.Build(String assemblyName) at SourceForge.NAnt.Tasks.NUnit2.NUnit2Task.runTest(NUnit2Test test, EventLis tener listener) at SourceForge.NAnt.Tasks.NUnit2.NUnit2Task.ExecuteTask() at SourceForge.NAnt.Task.Execute() at SourceForge.NAnt.Target.Execute() at SourceForge.NAnt.Project.Execute(String targetName) at SourceForge.NAnt.Tasks.CallTask.ExecuteTask() at SourceForge.NAnt.Task.Execute() at SourceForge.NAnt.Target.Execute() at SourceForge.NAnt.Project.Execute(String targetName) at SourceForge.NAnt.Project.Execute() at SourceForge.NAnt.Project.Run() Fusion log follows: === Pre-bind state information === LOG: DisplayName = SpikeWinClient (Partial) LOG: Appbase = C:\NAnt\bin\ LOG: Initial PrivatePath = NULL Calling assembly : nunit.framework, Version=2.0.6.0, Culture=neutral, PublicKeyT oken=96d09a1eb7f44a77. === LOG: Policy not being applied to reference at this time (private, custom, partia l, or location-based assembly bind). LOG: Post-policy reference: SpikeWinClient LOG: Attempting download of new URL file:///C:/NAnt/bin/SpikeWinClient.DLL. LOG: Attempting download of new URL file:///C:/NAnt/bin/SpikeWinClient/SpikeWinC lient.DLL. LOG: Attempting download of new URL file:///C:/NAnt/bin/SpikeWinClient.EXE. LOG: Attempting download of new URL file:///C:/NAnt/bin/SpikeWinClient
RE: [nant-dev] NUnit Error With NAnt...
Has the fork option been removed from the latest nunit2 task? I've used this with the 20021223 snapshot: nunit2 basedir=${nant.project.basedir} test assemblyname=${nant.project.basedir}/${build.dir}/${component-filename} type=Plain fork=true/ /nunit2 Darren -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Scott Hernandez Sent: 17 January 2003 00:49 To: Sansone, Aaron; [EMAIL PROTECTED] Subject: Re: [nant-dev] NUnit Error With NAnt... We also have, and have had, the same problems with NAntContrib for a while. Here is some background. http://sourceforge.net/mailarchive/message.php?msg_id=2372560 If you find any solution, or have any ideas, please feel free send them around. I'm just now starting to look into it. :) - Original Message - From: Sansone, Aaron [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 2:18 PM Subject: [nant-dev] NUnit Error With NAnt... All, I have the latest snapshot (1/14) of NAnt and I am trying to create a test build script. Apparently the NUnit2 Testing task is looking for my Assembly in the NAnt installation directory. If I copy my Assembly to the C:\NAnt\bin directory, my test tasks are run. However, I don't belive that this is the intended way to run NAnt-NUnit tasks. Is there a way to force the NUnit task to look as a specific directory for my assembly? Here are my relevant build file entries. Notice that I am specifying the absolute path for the assembly. I've tried several permutations of the assembly location, but only when I placed it in the NAnt/bin directory did I have any success. Properties: property name=project.basedir value=C:/Projects/SpikeSolution/ property name=build.dir value=build/ property name=project.ClientExe.name value=SpikeWinClient/ NAnt Task: nunit2 basedir=${project.basedir}\${build.dir} test assemblyname=${project.basedir}\${build.dir}\${project.ClientExe.name}.exe / /nunit2 When I execute the script, I get the following Error: INTERNAL ERROR System.IO.FileNotFoundException: File or assembly name SpikeWinClient, or one of its dependencies, was not found. File name: SpikeWinClient at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, B oolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Ass embly locationHint, StackCrawlMark stackMark) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark stackMark) at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence as semblySecurity, StackCrawlMark stackMark) at System.AppDomain.Load(String assemblyString) at NUnit.Core.TestSuiteBuilder.Build(String assemblyName) at SourceForge.NAnt.Tasks.NUnit2.NUnit2Task.runTest(NUnit2Test test, EventLis tener listener) at SourceForge.NAnt.Tasks.NUnit2.NUnit2Task.ExecuteTask() at SourceForge.NAnt.Task.Execute() at SourceForge.NAnt.Target.Execute() at SourceForge.NAnt.Project.Execute(String targetName) at SourceForge.NAnt.Tasks.CallTask.ExecuteTask() at SourceForge.NAnt.Task.Execute() at SourceForge.NAnt.Target.Execute() at SourceForge.NAnt.Project.Execute(String targetName) at SourceForge.NAnt.Project.Execute() at SourceForge.NAnt.Project.Run() Fusion log follows: === Pre-bind state information === LOG: DisplayName = SpikeWinClient (Partial) LOG: Appbase = C:\NAnt\bin\ LOG: Initial PrivatePath = NULL Calling assembly : nunit.framework, Version=2.0.6.0, Culture=neutral, PublicKeyT oken=96d09a1eb7f44a77. === LOG: Policy not being applied to reference at this time (private, custom, partia l, or location-based assembly bind). LOG: Post-policy reference: SpikeWinClient LOG: Attempting download of new URL file:///C:/NAnt/bin/SpikeWinClient.DLL. LOG: Attempting download of new URL file:///C:/NAnt/bin/SpikeWinClient/SpikeWinC lient.DLL. LOG: Attempting download of new URL file:///C:/NAnt/bin/SpikeWinClient.EXE. LOG: Attempting download of new URL file:///C:/NAnt/bin/SpikeWinClient/SpikeWinC lient.EXE. Please send bug report to [EMAIL PROTECTED] Thanks, Aaron --- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en ___ Nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers --- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin
Re: [nant-dev] NUnit Error With NAnt...
We also have, and have had, the same problems with NAntContrib for a while. Here is some background. http://sourceforge.net/mailarchive/message.php?msg_id=2372560 If you find any solution, or have any ideas, please feel free send them around. I'm just now starting to look into it. :) - Original Message - From: Sansone, Aaron [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 2:18 PM Subject: [nant-dev] NUnit Error With NAnt... All, I have the latest snapshot (1/14) of NAnt and I am trying to create a test build script. Apparently the NUnit2 Testing task is looking for my Assembly in the NAnt installation directory. If I copy my Assembly to the C:\NAnt\bin directory, my test tasks are run. However, I don't belive that this is the intended way to run NAnt-NUnit tasks. Is there a way to force the NUnit task to look as a specific directory for my assembly? Here are my relevant build file entries. Notice that I am specifying the absolute path for the assembly. I've tried several permutations of the assembly location, but only when I placed it in the NAnt/bin directory did I have any success. Properties: property name=project.basedir value=C:/Projects/SpikeSolution/ property name=build.dir value=build/ property name=project.ClientExe.name value=SpikeWinClient/ NAnt Task: nunit2 basedir=${project.basedir}\${build.dir} test assemblyname=${project.basedir}\${build.dir}\${project.ClientExe.name}.exe / /nunit2 When I execute the script, I get the following Error: INTERNAL ERROR System.IO.FileNotFoundException: File or assembly name SpikeWinClient, or one of its dependencies, was not found. File name: SpikeWinClient at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, B oolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Ass embly locationHint, StackCrawlMark stackMark) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark stackMark) at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence as semblySecurity, StackCrawlMark stackMark) at System.AppDomain.Load(String assemblyString) at NUnit.Core.TestSuiteBuilder.Build(String assemblyName) at SourceForge.NAnt.Tasks.NUnit2.NUnit2Task.runTest(NUnit2Test test, EventLis tener listener) at SourceForge.NAnt.Tasks.NUnit2.NUnit2Task.ExecuteTask() at SourceForge.NAnt.Task.Execute() at SourceForge.NAnt.Target.Execute() at SourceForge.NAnt.Project.Execute(String targetName) at SourceForge.NAnt.Tasks.CallTask.ExecuteTask() at SourceForge.NAnt.Task.Execute() at SourceForge.NAnt.Target.Execute() at SourceForge.NAnt.Project.Execute(String targetName) at SourceForge.NAnt.Project.Execute() at SourceForge.NAnt.Project.Run() Fusion log follows: === Pre-bind state information === LOG: DisplayName = SpikeWinClient (Partial) LOG: Appbase = C:\NAnt\bin\ LOG: Initial PrivatePath = NULL Calling assembly : nunit.framework, Version=2.0.6.0, Culture=neutral, PublicKeyT oken=96d09a1eb7f44a77. === LOG: Policy not being applied to reference at this time (private, custom, partia l, or location-based assembly bind). LOG: Post-policy reference: SpikeWinClient LOG: Attempting download of new URL file:///C:/NAnt/bin/SpikeWinClient.DLL. LOG: Attempting download of new URL file:///C:/NAnt/bin/SpikeWinClient/SpikeWinC lient.DLL. LOG: Attempting download of new URL file:///C:/NAnt/bin/SpikeWinClient.EXE. LOG: Attempting download of new URL file:///C:/NAnt/bin/SpikeWinClient/SpikeWinC lient.EXE. Please send bug report to [EMAIL PROTECTED] Thanks, Aaron --- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en ___ Nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] NUnit Error With NAnt...
You might want to look at this article. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm l/cpconspecifyingassemblyslocation.asp I am pretty sure that the default is for it to look in the GAC and then to look in the current directory. You may have to specify your values in a nant.exe.config file (or possibly the nunit.exe.config file). I haven't confirmed this yet as I haven't ventured into NUnit/NAnt integration just yet. brant ... - Original Message - From: Scott Hernandez [EMAIL PROTECTED] To: Sansone, Aaron [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 4:48 PM Subject: Re: [nant-dev] NUnit Error With NAnt... We also have, and have had, the same problems with NAntContrib for a while. Here is some background. http://sourceforge.net/mailarchive/message.php?msg_id=2372560 If you find any solution, or have any ideas, please feel free send them around. I'm just now starting to look into it. :) - Original Message - From: Sansone, Aaron [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 2:18 PM Subject: [nant-dev] NUnit Error With NAnt... All, I have the latest snapshot (1/14) of NAnt and I am trying to create a test build script. Apparently the NUnit2 Testing task is looking for my Assembly in the NAnt installation directory. If I copy my Assembly to the C:\NAnt\bin directory, my test tasks are run. However, I don't belive that this is the intended way to run NAnt-NUnit tasks. Is there a way to force the NUnit task to look as a specific directory for my assembly? Here are my relevant build file entries. Notice that I am specifying the absolute path for the assembly. I've tried several permutations of the assembly location, but only when I placed it in the NAnt/bin directory did I have any success. Properties: property name=project.basedir value=C:/Projects/SpikeSolution/ property name=build.dir value=build/ property name=project.ClientExe.name value=SpikeWinClient/ NAnt Task: nunit2 basedir=${project.basedir}\${build.dir} test assemblyname=${project.basedir}\${build.dir}\${project.ClientExe.name}.exe / /nunit2 When I execute the script, I get the following Error: INTERNAL ERROR System.IO.FileNotFoundException: File or assembly name SpikeWinClient, or one of its dependencies, was not found. File name: SpikeWinClient at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, B oolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Ass embly locationHint, StackCrawlMark stackMark) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark stackMark) at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence as semblySecurity, StackCrawlMark stackMark) at System.AppDomain.Load(String assemblyString) at NUnit.Core.TestSuiteBuilder.Build(String assemblyName) at SourceForge.NAnt.Tasks.NUnit2.NUnit2Task.runTest(NUnit2Test test, EventLis tener listener) at SourceForge.NAnt.Tasks.NUnit2.NUnit2Task.ExecuteTask() at SourceForge.NAnt.Task.Execute() at SourceForge.NAnt.Target.Execute() at SourceForge.NAnt.Project.Execute(String targetName) at SourceForge.NAnt.Tasks.CallTask.ExecuteTask() at SourceForge.NAnt.Task.Execute() at SourceForge.NAnt.Target.Execute() at SourceForge.NAnt.Project.Execute(String targetName) at SourceForge.NAnt.Project.Execute() at SourceForge.NAnt.Project.Run() Fusion log follows: === Pre-bind state information === LOG: DisplayName = SpikeWinClient (Partial) LOG: Appbase = C:\NAnt\bin\ LOG: Initial PrivatePath = NULL Calling assembly : nunit.framework, Version=2.0.6.0, Culture=neutral, PublicKeyT oken=96d09a1eb7f44a77. === LOG: Policy not being applied to reference at this time (private, custom, partia l, or location-based assembly bind). LOG: Post-policy reference: SpikeWinClient LOG: Attempting download of new URL file:///C:/NAnt/bin/SpikeWinClient.DLL. LOG: Attempting download of new URL file:///C:/NAnt/bin/SpikeWinClient/SpikeWinC lient.DLL. LOG: Attempting download of new URL file:///C:/NAnt/bin/SpikeWinClient.EXE. LOG: Attempting download of new URL file:///C:/NAnt/bin/SpikeWinClient/SpikeWinC lient.EXE. Please send bug report to [EMAIL PROTECTED] Thanks, Aaron --- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en ___ Nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo