Re: [NUnitAsp-devl] Building NUnit - Specified file cannot be found: NUnitAsp.snk
Brought to you by:
jlittle82
From: Jim S. <js...@ti...> - 2005-04-30 21:08:11
|
Ted Husted wrote: >Thanks, Cory. I'm good now, but if I were to use NAnt for anything >else, I'm certain this would help. > > Thanks to both of you for investigating this. I've updated the FAQ: Q: When I try to compile NUnitAsp with NAnt, the build says "External program returned errors". What's wrong? A: The build script is set up to work with .NET 1.0 by default. It sets an environment variable called DotNetToolDir to point to your .NET 1.0 directory. If that directory doesn't exist, the build won't be able to find "sn.exe" and will fail with this error: keypair: [exec] sn -k NUnitAsp.snk BUILD FAILED C:\projects\nunitasp\NUnitAsp.build(50,4): External program returned errors, see build log for details. Try 'nant -help' for more information To correct this, make sure you've set DotNetToolDir correctly and that sn.exe is in that path. Once you have that working, NAnt will give you a different error: BUILD FAILED C:\projects\nunitasp\NUnitAsp.build(90,6): [csc] C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\csc.exe failed to start. The system cannot find the file specified This error occurs because NAnt uses .NET 1.0 by default. At this point, you can use Visual Studio to build or you can edit NAnt.exe.config in the lib\NAnt directory. If you edit the config file, set the default framework to 1.1: <frameworks> <platform name="win32" default="net-1.1"> ... </platform> </frameworks> Many thanks to Ted Husted for pointing this out and to Cory Foy for blogging the solution <http://www.cornetdesign.com/2005/04/targetting-nant-to-different-framework.html>. Regards, Jim -- James Shore - Titanium I.T. LLC - Successful Software Upcoming presentation: "Offing the Offsite Customer" Oregon Graduate Institute, May 10th. http://tinyurl.com/9vucu phone: 503-267-5490 email: js...@ti... |