tags:

views:

118

answers:

1

How do i implement Mutex lock in Nant, the reason why i need this feature is because

i register COM components in order to get my build working , and then end of the build i Un Register the COM components.

without mutex lock, different version of COM are registered and face some issues.

so it would be better if we apply mutex lock in nant script , so if the build is running other project will wait until it finishes.

A: 

The only way I know of doing this is to create your own task that would allow you to lock on a global mutex, and then another task to unlock it. These new tasks can either be build separately and added to NAnt by copying dlls into NAnt\bin folder, or by extending NAnt directly from your build files

The information to get you started is found on <script/> Task

earlNameless