|
|
|
@ -287,12 +287,7 @@ namespace ICSharpCode.SharpDevelop.Project |
|
|
|
ILanguageBinding binding = LanguageBindingService.GetBindingPerProjectFile(fileName); |
|
|
|
ILanguageBinding binding = LanguageBindingService.GetBindingPerProjectFile(fileName); |
|
|
|
IProject project; |
|
|
|
IProject project; |
|
|
|
if (binding != null) { |
|
|
|
if (binding != null) { |
|
|
|
try { |
|
|
|
project = LanguageBindingService.LoadProject(fileName, solution.Name); |
|
|
|
project = LanguageBindingService.LoadProject(fileName, solution.Name); |
|
|
|
|
|
|
|
} catch (UnauthorizedAccessException ex) { |
|
|
|
|
|
|
|
MessageService.ShowError(ex.Message); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
MessageService.ShowError(StringParser.Parse("${res:ICSharpCode.SharpDevelop.Commands.OpenCombine.InvalidProjectOrCombine}", new string[,] {{"FileName", fileName}})); |
|
|
|
MessageService.ShowError(StringParser.Parse("${res:ICSharpCode.SharpDevelop.Commands.OpenCombine.InvalidProjectOrCombine}", new string[,] {{"FileName", fileName}})); |
|
|
|
return; |
|
|
|
return; |
|
|
|
@ -311,9 +306,11 @@ namespace ICSharpCode.SharpDevelop.Project |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
solution.FixSolutionConfiguration(new IProject[] { project }); |
|
|
|
solution.FixSolutionConfiguration(new IProject[] { project }); |
|
|
|
solution.Save(solutionFile); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LoadSolution(solutionFile); |
|
|
|
if (FileUtility.ObservedSave((NamedFileOperationDelegate)solution.Save, solutionFile) == FileOperationResult.OK) { |
|
|
|
|
|
|
|
// only load when saved succesfully
|
|
|
|
|
|
|
|
LoadSolution(solutionFile); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void SaveSolution() |
|
|
|
public static void SaveSolution() |
|
|
|
|