It appears that PreBuild events when run in Nant does not exactly run pre-build.  We have as a pre-build step two commands that do the following:
 
1) delete a .dll the project uses as a reference
2) runs the tlbimp command to recreate the DLL
 
If the DLL does not exist (because this never ran before for a user) then the Pre-Build event actually never runs.  Rather it fails because a referenced DLL does not exist.  (Which would have been there if the pre-build event ran!!!)
 
Also, if the DLL exists is also fails because the DLL is locked.  I assume this happened because in the process of checking dependant DLLs Nant has locked the DLL.
 
Would this be a hard bug to get fixed in Nant?
 
Ray

Reply via email to