Add setting to extend dotnet-publish arguments in ApplicationDeployer
This commit is contained in:
parent
ac8a86ff3f
commit
e312552edd
|
|
@ -76,6 +76,11 @@ namespace Microsoft.AspNetCore.Server.IntegrationTesting
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Configuration { get; set; } = "Debug";
|
public string Configuration { get; set; } = "Debug";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Space separated command line arguments to be passed to dotnet-publish
|
||||||
|
/// </summary>
|
||||||
|
public string AdditionalPublishParameters { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// To publish the application before deployment.
|
/// To publish the application before deployment.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,8 @@ namespace Microsoft.AspNetCore.Server.IntegrationTesting
|
||||||
var parameters = $"publish "
|
var parameters = $"publish "
|
||||||
+ $" --output \"{DeploymentParameters.PublishedApplicationRootPath}\""
|
+ $" --output \"{DeploymentParameters.PublishedApplicationRootPath}\""
|
||||||
+ $" --framework {DeploymentParameters.TargetFramework}"
|
+ $" --framework {DeploymentParameters.TargetFramework}"
|
||||||
+ $" --configuration {DeploymentParameters.Configuration}";
|
+ $" --configuration {DeploymentParameters.Configuration}"
|
||||||
|
+ $" {DeploymentParameters.AdditionalPublishParameters}";
|
||||||
|
|
||||||
Logger.LogInformation($"Executing command {DotnetCommandName} {parameters}");
|
Logger.LogInformation($"Executing command {DotnetCommandName} {parameters}");
|
||||||
|
|
||||||
|
|
@ -103,6 +104,8 @@ namespace Microsoft.AspNetCore.Server.IntegrationTesting
|
||||||
{
|
{
|
||||||
if (hostProcess != null && !hostProcess.HasExited)
|
if (hostProcess != null && !hostProcess.HasExited)
|
||||||
{
|
{
|
||||||
|
Logger.LogInformation("Attempting to cancel process {0}", hostProcess.Id);
|
||||||
|
|
||||||
// Shutdown the host process.
|
// Shutdown the host process.
|
||||||
hostProcess.KillTree();
|
hostProcess.KillTree();
|
||||||
if (!hostProcess.HasExited)
|
if (!hostProcess.HasExited)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue