private static async Task WaitProcessExitAsync(string processName)
{
while (true)
{
var processes = Process.GetProcessesByName(processName);
if (processes.Length <= 0)
{
return;
}
await Task.Delay(500).ConfigureAwait(false);
}
}
protected virtual async Task UpdateFilesAsync(FileInfo packageFile, string targetDirectoryPath)