Isn't that always the way. Please let us know if you can reproduce the error. Its a little strange - I'm fairly sure that nothing in the build is looking at that file except the section that builds it and the one that runs it with NUnit. The Nunit part comes later so it shouldn't be able to do the locking. - weird.
Ian
Vincent Erickson wrote:


And of course, when I install handle and then try to replicate the problem,
it magically goes away. Sorry for the trouble, but it seems to be compiling
fine now.

-----Original Message-----
From: Ian MacLean [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 15, 2003 9:57 AM
To: Vincent Erickson
Cc: NAnt Users List ([EMAIL PROTECTED])
Subject: Re: [Nant-users] Getting errors trying to compile using .Net v1.1


Vincent,
I'd be interested to see your first error. As longs as the upgrade didn't remove the 1.0 version of the framework - the build should still have worked.
As for the error you've posted, I'm not sure. Is it possible that you have another build running in another console that could have locked that file ?


I suggest using the handle [1] utility to find out which process is locking NAnt.VisualCpp.Tests.dll

[1]http://www.sysinternals.com/ntw2k/freeware/handle.shtml

Ian

Vincent Erickson wrote:



I just upgraded my machine from Visual Studio .Net 2002 to VS.Net 2003. When my nightly nant script ran, it failed and implied that it needed to be recompiled using the newer framework. I downloaded the latest nightly build and ran the following command line: nant /k:net-1.1



It gets most of the way through building, then gives me the following error:



[nant] tests/NAnt.VisualCpp/NAnt.VisualCpp.build test



Buildfile: file:///C:/NAnt/tests/NAnt.VisualCpp/NAnt.VisualCpp.build

Target(s) specified: test



build:



[csc] Compiling 3 files to C:\NAnt/build/nant-0.8.4-debug/bin/NAnt.VisualCpp.Tests.dll.

error CS0016: Could not write to output file 'c:\NAnt\build\nant-0.8.4-debug\bin\NAnt.VisualCpp.Tests.dll' -- 'The process cannot access the file because it is being used by another process. '



BUILD FAILED



C:\NAnt\tests\NAnt.VisualCpp\NAnt.VisualCpp.build(11,10)

:

External Program Failed: C:\WINNT\Microsoft.NET\Framework\v1.1.4322\csc.exe (return code was 1)



Total time: 0.3 seconds.



BUILD FAILED

Nested build failed. Refer to build log for exact reason.



Total time: 22.8 seconds.



BUILD FAILED



C:\NAnt\NAnt.build(111,10):

External Program Failed: C:\NAnt/build/nant-0.8.4-debug/bin/NAnt.exe (return code was 1)



Any thoughts?













------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to