Browse Source

Fixed SD2-577: System.ArgumentException: Value does not fall within the expected range

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@817 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 20 years ago
parent
commit
d8682cf797
  1. 5
      src/Main/Base/Project/Src/Project/MSBuildProject.cs

5
src/Main/Base/Project/Src/Project/MSBuildProject.cs

@ -321,6 +321,11 @@ namespace ICSharpCode.SharpDevelop.Project @@ -321,6 +321,11 @@ namespace ICSharpCode.SharpDevelop.Project
}
psi.Arguments = StringParser.Parse(this.StartArguments);
if (!File.Exists(psi.FileName)) {
MessageService.ShowError(psi.FileName + " does not exist and cannot be started.");
return;
}
if (withDebugging) {
DebuggerService.CurrentDebugger.Start(psi);
} else {

Loading…
Cancel
Save