I agree. This may not be an issue with the SNK file at all because I added a copy task to copy the SNK file to the bin/release file and changed the AssemblyKeyFile path to "DriveTime.snk" and the path resolves but I still am getting the following error randomly:
[csc] error CS1606: Assembly signing failed; output may not be signed -- The process cannot access the file because it is being used by another process. I am building assemblies that rely on previously built assemblies. For example Common is built and Accounting relies on Common. Once Accounting is built, Operations relies on it, etc, etc. I even tried putting the build to sleep for up to 30 seconds between builds to no avail. Any tips greatly appreciated. Please reply to myself as well as nant-users@lists.sourceforge.net so that the entire list may benefit from your response. Thanks, Rick --- Giscard Biamby <[EMAIL PROTECTED]> wrote: > Looking at the error message it seems that it has > trouble > accessing the assembly, not the .snk file... > > --- "Rick G. Garibay" <[EMAIL PROTECTED]> wrote: > > > I have a nested build that runs nightly. Very > > frequently lately, the build fails, randomly. The > > failure appears to be due to a locking issue with > the > > snk file that is used to strongly name each output > > assembly. > > > > I have the snk file on the build server in the > > following location C:\Temp\. > > > > When the build fails, the following error message > > occurs: The process cannot access the file because > it > > is being used by another process. > > > > Is this an SNK file locking issue? Does anyone > have a > > workaround to get around the issue? > > > > Many thanks, > > > > Rick > > > > Below is the log output. > > > > > > > > [echo] Attempting to clean > C:\VSS\Projects\VIMMS > > - Phase I > > [delete] Deleting directory > 'C:\VSS\Projects\VIMMS > > - Phase I'. > > [delete] Cannot delete directory > > 'C:\VSS\Projects\VIMMS - Phase I'. The process > cannot > > access the file "C:\VSS\Projects\VIMMS - Phase I" > > because it is being used by another process. > > [echo] Cleaning C:\VSS\Projects\VIMMS - Phase > I > > [echo] Clean successful! > > > > build: > > > > [nant] D:\NANT\Nightly\VIMMS - Phase > > I\BusinessEntities.Common.build > > Buildfile: > file:///D:/NANT/Nightly/VIMMS - > > Phase I/BusinessEntities.Common.build > > Target framework: Microsoft .NET > Framework > > 2.0 > > Base Directory: D:\NANT\Nightly\VIMMS > - > > Phase I. > > > > [vssget] Getting '$/Projects/VIMMS > - > > Phase I/BusinessEntities.Common/Code' to > > 'C:\VSS\Projects\VIMMS - Phase I'... > > D:\NANT\Nightly\VIMMS - Phase > > I\BusinessEntities.Common.build(34,5): Element > > <includes... /> for <fileset... /> is deprecated. > Use > > <include> element instead. > > [csc] Compiling 8 files to > > > 'D:\Builds\DriveTime\BusinessEntities.Common\Bin\Debug\DriveTime.BusinessEntities.Common.dll'." > > [csc] c:\VSS\Projects\VIMMS - > Phase > > > I\BusinessEntities.Common\DriveTime.BusinessEntities.Common\AssemblyInfo.cs(30,12): > > warning CS1699: Use command line option '/keyfile' > or > > appropriate project settings instead of > > 'AssemblyKeyFile' > > > > BUILD SUCCEEDED > > > > [nant] D:\NANT\Nightly\VIMMS - Phase > > I\BusinessEntities.Operations.build > > Buildfile: > file:///D:/NANT/Nightly/VIMMS - > > Phase I/BusinessEntities.Operations.build > > Target framework: Microsoft .NET > Framework > > 2.0 > > Base Directory: D:\NANT\Nightly\VIMMS > - > > Phase I. > > > > [vssget] Getting '$/Projects/VIMMS > - > > Phase I/BusinessEntities.Operations/Code' to > > 'C:\VSS\Projects\VIMMS - Phase I'... > > D:\NANT\Nightly\VIMMS - Phase > > I\BusinessEntities.Operations.build(45,5): Element > > <includes... /> for <assemblyfileset... /> is > > deprecated. Use <include> element instead. > > D:\NANT\Nightly\VIMMS - Phase > > I\BusinessEntities.Operations.build(42,5): Element > > <includes... /> for <fileset... /> is deprecated. > Use > > <include> element instead. > > [csc] Compiling 7 files to > > > 'D:\Builds\DriveTime\BusinessEntities.Operations\Bin\Debug\DriveTime.BusinessEntities.Operations.dll'." > > [csc] c:\VSS\Projects\VIMMS - > Phase > > > I\BusinessEntities.Operations\DriveTime.BusinessEntities.Operations\AssemblyInfo.cs(30,12): > > warning CS1699: Use command line option '/keyfile' > or > > appropriate project settings instead of > > 'AssemblyKeyFile' > > > > BUILD SUCCEEDED > > > > [nant] D:\NANT\Nightly\VIMMS - Phase > > I\BusinessEntities.Operations.build > > Buildfile: > file:///D:/NANT/Nightly/VIMMS - > > Phase I/BusinessEntities.Operations.build > > Target framework: Microsoft .NET > Framework > > 2.0 > > Base Directory: D:\NANT\Nightly\VIMMS > - > > Phase I. > > > > [vssget] Getting '$/Projects/VIMMS > - > > Phase I/BusinessEntities.Operations/Code' to > > 'C:\VSS\Projects\VIMMS - Phase I'... > > D:\NANT\Nightly\VIMMS - Phase > > I\BusinessEntities.Operations.build(45,5): Element > > <includes... /> for <assemblyfileset... /> is > > deprecated. Use <include> element instead. > > D:\NANT\Nightly\VIMMS - Phase > > I\BusinessEntities.Operations.build(42,5): Element > > <includes... /> for <fileset... /> is deprecated. > Use > > <include> element instead. > > [csc] Compiling 7 files to > > > 'D:\Builds\DriveTime\BusinessEntities.Operations\Bin\Debug\DriveTime.BusinessEntities.Operations.dll'." > > [csc] c:\VSS\Projects\VIMMS - > Phase > > > I\BusinessEntities.Operations\DriveTime.BusinessEntities.Operations\AssemblyInfo.cs(30,12): > > warning CS1699: Use command line option '/keyfile' > or > > appropriate project settings instead of > > 'AssemblyKeyFile' > > > > BUILD SUCCEEDED > > > > [nant] D:\NANT\Nightly\VIMMS - Phase > > I\BusinessEntities.Accounting.build > > Buildfile: > file:///D:/NANT/Nightly/VIMMS - > > Phase I/BusinessEntities.Accounting.build > > Target framework: Microsoft .NET > Framework > > 2.0 > > Base Directory: D:\NANT\Nightly\VIMMS > - > > Phase I. > > > > [vssget] Getting '$/Projects/VIMMS > - > > Phase I/BusinessEntities.Accounting/Code' to > > 'C:\VSS\Projects\VIMMS - Phase I'... > > D:\NANT\Nightly\VIMMS - Phase > > I\BusinessEntities.Accounting.build(41,5): Element > > <includes... /> for <assemblyfileset... /> is > > deprecated. Use <include> element instead. > > D:\NANT\Nightly\VIMMS - Phase > > I\BusinessEntities.Accounting.build(38,5): Element > > <includes... /> for <fileset... /> is deprecated. > Use > > <include> element instead. > > [csc] Compiling 6 files to > > > 'D:\Builds\DriveTime\BusinessEntities.Accounting\Bin\Debug\DriveTime.BusinessEntities.Accounting.dll'." > > [csc] c:\VSS\Projects\VIMMS - > Phase > > > I\BusinessEntities.Accounting\DriveTime.BusinessEntities.Accounting\AssemblyInfo.cs(30,12): > > warning CS1699: Use command line option '/keyfile' > or > > appropriate project settings instead of > > 'AssemblyKeyFile' > > [csc] error CS1606: Assembly > signing > > failed; output may not be signed -- The process > cannot > > access the file because it is being used by > another > > process. > > > > BUILD FAILED > > > > D:\NANT\Nightly\VIMMS - Phase > > I\BusinessEntities.Accounting.build(37,4): > > External Program Failed: > > > C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe > > (return code was 1): > > NAnt.Core.BuildException: > > D:\NANT\Nightly\VIMMS - Phase > > I\BusinessEntities.Accounting.build(37,4): > > External Program Failed: > > > C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe > > (return code was 1) > > at > > NAnt.Core.Tasks.ExternalProgramBase.ExecuteTask() > > at > > NAnt.DotNet.Tasks.CompilerBase.ExecuteTask() > > at NAnt.Core.Task.Execute() > > at > > > NAnt.Core.Project.InitializeProjectDocument(XmlDocument > > doc) > > at NAnt.Core.Project.Execute() > > at NAnt.Core.Project.Run() > > > > Build sequence for target `failure' is failure > > Complete build sequence is failure, clean, build, > > success > > > > failure: > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection > > around > > http://mail.yahoo.com > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by xPML, a > groundbreaking > > scripting language > > that extends applications into web and mobile > media. > > Attend the live webcast > > and join the prime developer group breaking into > this new > > coding territory! > > > === message truncated === > > > "Few are those who see with their own eyes and feel > with their own hearts." -Albert Einstein > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users