diff options
author | Ian Toal <iantoal@microsoft.com> | 2019-05-28 18:56:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-28 18:56:53 +0300 |
commit | a56f859d52d96c606cd723f86ebfc5f8a75236ec (patch) | |
tree | f2d4076de82bc602238f657436de7235f09fb8a7 /main | |
parent | eb4f62cf4df627575d789f3c9399740be63f56dc (diff) | |
parent | a412d74ceb33d77046e75be136a1945784b14487 (diff) |
Merge pull request #7692 from mono/FixExternalConsoleIssueInAspDotNetCoreProjects
Enable ASP.Net Core projects to run on external console
Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/850047
Derive AspNetCoreExecutionCommand from DotNetCoreExecutionCommand as they are identical apart from the ApplicationURLs property.
This change enables the external console handling code in DotNetCoreProjectExtension::OnExecuteDotNetCoreCommand to work correctly with all .Net Core projects.
Diffstat (limited to 'main')
-rw-r--r-- | main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore/AspNetCoreExecutionCommand.cs | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore/AspNetCoreExecutionCommand.cs b/main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore/AspNetCoreExecutionCommand.cs index 76b286de1f..7262dfa195 100644 --- a/main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore/AspNetCoreExecutionCommand.cs +++ b/main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore/AspNetCoreExecutionCommand.cs @@ -28,33 +28,16 @@ using MonoDevelop.DotNetCore; namespace MonoDevelop.AspNetCore { - class AspNetCoreExecutionCommand : ProcessExecutionCommand + class AspNetCoreExecutionCommand : DotNetCoreExecutionCommand { public AspNetCoreExecutionCommand (string directory, string outputPath, string arguments) + : base (directory, outputPath, arguments) { - WorkingDirectory = directory; - OutputPath = outputPath; - DotNetArguments = arguments; - - Command = DotNetCoreRuntime.FileName; - Arguments = string.Format ("\"{0}\" {1}", outputPath, arguments); } - public string OutputPath { get; private set; } - public string DotNetArguments { get; private set; } - - public bool PauseConsoleOutput { get; set; } - public bool ExternalConsole { get; set; } - public bool LaunchBrowser { get; set; } - public string LaunchURL { get; set; } // Since we are now supporting more than one url, we added this property // so that it contains the raw value of AppUrl // which might provide more than one url i.e. https://localhost:5000;http://localhost:5001 public string ApplicationURLs { get; set; } - // This is only kept for compatibility with debugger and should contain just - // the url that is going to be launched i.e. https://localhost:5000 - public string ApplicationURL { get; set; } - - public PipeTransportSettings PipeTransport { get; set; } } } |