Browse Source

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
shortcuts
Daniel Grunwald 20 years ago
parent
commit
3c07d41faa
  1. 7
      src/Main/Base/Project/Src/Services/ProjectService/ProjectService.cs

7
src/Main/Base/Project/Src/Services/ProjectService/ProjectService.cs

@ -248,7 +248,6 @@ namespace ICSharpCode.SharpDevelop.Project @@ -248,7 +248,6 @@ namespace ICSharpCode.SharpDevelop.Project
/// </summary>
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 @@ -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()

Loading…
Cancel
Save