I was trying to use this in gulp but its not obvious how to signal that the dotnet process has ended, I thought maybe it was returning a promise, but that wasnt the case.
Could you add some more information around how you are meant to use this when you need to do something once the process has finished?