Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Toal <iantoal@microsoft.com>2019-05-28 12:50:10 +0300
committerIan Toal <iantoal@microsoft.com>2019-05-28 12:50:10 +0300
commita412d74ceb33d77046e75be136a1945784b14487 (patch)
tree77f0a2000dd1f350992c5cadb1cbb083bcf788ec /main/src/addins
parent1639171ef392a1fc1c1e01637ca3c961592efb83 (diff)
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/src/addins')
-rw-r--r--main/src/addins/MonoDevelop.AspNetCore/MonoDevelop.AspNetCore/AspNetCoreExecutionCommand.cs21
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; }
}
}