From: Foster, Richard - PAL
Sent: Wednesday, March 01, 2006 10:09
To: 'Felice Vittoria'
Subject: RE: [NAnt-users] <solution> build fails with "Cannot access the file [file] because it is being used by another process"
From: Felice Vittoria [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 01, 2006 10:05
To: Foster, Richard - PAL; [email protected]
Subject: RE: [NAnt-users] <solution> build fails with "Cannot access the file [file] because it is being used by another process"
<echo message="Compiling: ${proj.rootdir}\${proj.subdir}\${proj.name}" />
<exec program="C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE\devenv.com"
commandline=""${proj.rootdir}\${proj.subdir}\${proj.name}" /build ${build.config}" />
</target>
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Foster, Richard - PAL
Sent: Wednesday, March 01, 2006 8:59 AM
To: [email protected]
Subject: [NAnt-users] <solution> build fails with "Cannot access the file [file] because it is being used by another process"Hi there,
I suspect this problem may be associated with something like (for example) the anti-virus software over which I have no control.
I see from the mailing list that it was believed resolved back in 2004. Well, I'm getting it (intermittently) with the most recent "nightly" build (the one dated December 13th).
It appears to occur most frequently under the following conditions:
1) The build must be a sub-build (i.e. triggered through a <nant … /> element)
2) The project being built by the <solution … /> is a small one consisting of one form, and at most two other classes.The culprit which is "being used by another process" is almost invariably ResGen.exe. I guess it is copied to the temp folder before an attempt is made to compile the resource files.
Any suggestions for how I can resolve this?
Regards,
Richard
