private void RunDotNetFrameworkImplementation() { var runAllBatchFileLocation = Utilities.GetAssemblyDirectory + "\\runall.bat"; var runTestsBatchFileLocation = Utilities.GetAssemblyDirectory + "\\runtests.bat"; LogMessages.Add(LogMessage.Log($"Generating runtests.bat file to: {runTestsBatchFileLocation}", LogMessage.LogType.Info)); BatchFileHelper.CreateRunTestsBatchFile(TestProjects.Where(a => a.IsSelected), runTestsBatchFileLocation); LogMessages.Add(LogMessage.Log("Generated runtests.bat", LogMessage.LogType.Success)); LogMessages.Add(LogMessage.Log($"Generating runall.bat to: {runAllBatchFileLocation}", LogMessage.LogType.Info)); BatchFileHelper.CreateRunAllBatchFile(AssemblyProjects.Where(a => a.IsSelected), runAllBatchFileLocation); LogMessages.Add(LogMessage.Log("Generated runall.bat", LogMessage.LogType.Success)); BatchFileHelper.RunBatchFile(runAllBatchFileLocation); LogMessages.Add(LogMessage.Log("Successfully ran main batch file", LogMessage.LogType.Success)); }
private void RunDotNetCoreImplementation() { var debugFullMessage = HasDebugFullOn(); if (!string.IsNullOrEmpty(debugFullMessage)) { var message = $"Invalid project setup: {Environment.NewLine}{Environment.NewLine}{debugFullMessage}{Environment.NewLine}{Environment.NewLine}" + "Project/PropertyGroup/DebugType in the csproj setup correctly, the value must be 'Full'."; MessageBox.Show(message, "Debug mode not setup", MessageBoxButton.OK, MessageBoxImage.Exclamation); return; } var runAllBatchFileLocation = Utilities.GetAssemblyDirectory + "\\rundotnetcore.bat"; LogMessages.Add(LogMessage.Log($"Generating rundotnetcore.bat file to: {runAllBatchFileLocation}", LogMessage.LogType.Info)); BatchFileHelper.CreateDotNetCoreBatchFile(TestProjects.Where(a => a.IsSelected), runAllBatchFileLocation); LogMessages.Add(LogMessage.Log("Generated rundotnetcore.bat", LogMessage.LogType.Success)); BatchFileHelper.RunBatchFile(runAllBatchFileLocation); LogMessages.Add(LogMessage.Log("Successfully rundotnetcore.bat batch file", LogMessage.LogType.Success)); }