Browse Source

The start command line arguments and the working directory are parsed by the StringParser before the program is run. This enables the use of custom string tags such as TargetPath, TargetDir, etc.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@562 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Matt Ward 20 years ago
parent
commit
47d7a3db83
  1. 4
      src/Main/Base/Project/Src/Project/MSBuildProject.cs

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

@ -308,13 +308,13 @@ namespace ICSharpCode.SharpDevelop.Project @@ -308,13 +308,13 @@ namespace ICSharpCode.SharpDevelop.Project
{
ProcessStartInfo psi = new ProcessStartInfo();
psi.FileName = Path.Combine(Directory, program);
string workingDir = this.StartWorkingDirectory;
string workingDir = StringParser.Parse(this.StartWorkingDirectory);
if (workingDir.Length == 0) {
psi.WorkingDirectory = Path.GetDirectoryName(psi.FileName);
} else {
psi.WorkingDirectory = Path.Combine(Directory, workingDir);
}
psi.Arguments = this.StartArguments;
psi.Arguments = StringParser.Parse(this.StartArguments);
if (withDebugging) {
DebuggerService.CurrentDebugger.Start(psi);

Loading…
Cancel
Save