protected static void RegisterDXWinSdk(string dxWinSdkDirectoryPath) { var batchFileRunner = new ToolRunner(); foreach (var registrationBatchFilePath in FileSystemHelper.FindBatchFiles(dxWinSdkDirectoryPath)) { batchFileRunner.SetContext(registrationBatchFilePath, string.Empty, (int)TimeSpan.FromMinutes(5).TotalSeconds); ExecuteExternalTool(batchFileRunner, null, "[DX WIN SDK REGISTRATION]"); } }