From 3c07d41faa782dd244ea25a08806215d5cb4166c Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Fri, 10 Mar 2006 16:02:22 +0000 Subject: [PATCH] Applied patch by Scott Ferrett: AnyCPU error on new solution git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.0@1205 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../Project/Src/Services/ProjectService/ProjectService.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Main/Base/Project/Src/Services/ProjectService/ProjectService.cs b/src/Main/Base/Project/Src/Services/ProjectService/ProjectService.cs index f0a07ed47c..7c0b7ac949 100644 --- a/src/Main/Base/Project/Src/Services/ProjectService/ProjectService.cs +++ b/src/Main/Base/Project/Src/Services/ProjectService/ProjectService.cs @@ -248,7 +248,6 @@ namespace ICSharpCode.SharpDevelop.Project /// public static void LoadProject(string fileName) { - BeforeLoadSolution(); string solutionFile = Path.ChangeExtension(fileName, ".sln"); if (File.Exists(solutionFile)) { LoadSolution(solutionFile); @@ -275,11 +274,7 @@ namespace ICSharpCode.SharpDevelop.Project solution.FixSolutionConfiguration(new IProject[] { project }); solution.Save(solutionFile); - openSolution = solution; - ApplyConfigurationAndReadPreferences(); - // preferences must be read before OnSolutionLoad is called to enable - // the event listeners to read e.Solution.Preferences.Properties - OnSolutionLoaded(new SolutionEventArgs(openSolution)); + LoadSolution(solutionFile); } public static void SaveSolution()