Browse Source

Use ToolNotFoundProjectLoadException in WixProject.CheckWixIsInstalled()

pull/470/head
Daniel Grunwald 11 years ago
parent
commit
ed42398a05
  1. 6
      src/AddIns/BackendBindings/WixBinding/Project/Src/Project/WixProject.cs

6
src/AddIns/BackendBindings/WixBinding/Project/Src/Project/WixProject.cs

@ -66,7 +66,11 @@ namespace ICSharpCode.WixBinding @@ -66,7 +66,11 @@ namespace ICSharpCode.WixBinding
ReevaluateIfNecessary();
} catch (InvalidProjectFileException ex) {
LoggingService.Error(ex);
throw new InvalidProjectFileException(StringParser.Parse("${res:ICSharpCode.WixBinding.WixNotInstalled}"));
string message = StringParser.Parse("${res:ICSharpCode.WixBinding.WixNotInstalled}");
throw new ToolNotFoundProjectLoadException(message) {
Description = message,
LinkTarget = "http://wixtoolset.org/"
};
}
}

Loading…
Cancel
Save