Browse Source

Don't catch ProjectLoadException in ProjectDescriptor.

The whole template creation process (ProjectTemplate.CreateProjects) should throw the exception so that exception details are available to the caller.
This fixes displaying the ToolNotFoundDialog when creating a WiX project without installing the WiX toolset.
pull/469/head
Daniel Grunwald 11 years ago
parent
commit
ceeb58b133
  1. 12
      src/Main/SharpDevelop/Templates/Project/ProjectDescriptor.cs

12
src/Main/SharpDevelop/Templates/Project/ProjectDescriptor.cs

@ -426,15 +426,9 @@ namespace ICSharpCode.SharpDevelop.Templates @@ -426,15 +426,9 @@ namespace ICSharpCode.SharpDevelop.Templates
}
#endregion
#region Create Project
try {
info.InitializeTypeSystem = false;
project = languageinfo.CreateProject(info);
} catch (ProjectLoadException ex) {
MessageService.ShowError(ex.Message);
return false;
}
#endregion
// Create Project
info.InitializeTypeSystem = false;
project = languageinfo.CreateProject(info);
#region Create Project Items, Imports and Files
// Add Project items

Loading…
Cancel
Save