NantにMutexロックを実装するにはどうすればよいですか?この機能が必要な理由は、ビルドを機能させるためにCOMコンポーネントを登録するためです。次に、ビルドの最後に、COMコンポーネントの登録を解除します。
ミューテックスロックがないと、異なるバージョンのCOMが登録され、いくつかの問題が発生します。
したがって、NantスクリプトでMutexロックを適用するとよいでしょう。そうすれば、ビルドが実行されている場合、他のプロジェクトはそれが完了するまで待機します。
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