private void SaveConfigToXml() { OutputService.WriteOutputWithContext("Start: Saving Config to Xml."); if (solutionPath?.DirectoryName != null) { var xmlFile = Path.Combine(solutionPath.DirectoryName, solutionPath.Name.Replace(solutionPath.Extension, string.Empty)); OutputService.WriteOutputWithContext($"Prossesing: Saving Config to Xml => {xmlFile}"); SerializationService.ToXml($"{xmlFile}ConfigData.xml", Configuration); SerializationService.ToXml($"{xmlFile}ProjectData.xml", Data); } OutputService.WriteOutputWithContext("Finished: Saving Config to Xml."); }