Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit ceeb58b

Browse files
committed
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.
1 parent 8666180 commit ceeb58b

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

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

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -426,15 +426,9 @@ public bool CreateProject(ProjectTemplateResult templateResults, string defaultL
426426
}
427427
#endregion
428428

429-
#region Create Project
430-
try {
431-
info.InitializeTypeSystem = false;
432-
project = languageinfo.CreateProject(info);
433-
} catch (ProjectLoadException ex) {
434-
MessageService.ShowError(ex.Message);
435-
return false;
436-
}
437-
#endregion
429+
// Create Project
430+
info.InitializeTypeSystem = false;
431+
project = languageinfo.CreateProject(info);
438432

439433
#region Create Project Items, Imports and Files
440434
// Add Project items

0 commit comments

Comments
 (0)