#1244 Disable restore on publish for integration tests
This commit is contained in:
parent
bc4a514d9e
commit
1e360cbb36
|
|
@ -88,6 +88,11 @@ namespace Microsoft.AspNetCore.Server.IntegrationTesting
|
|||
/// </summary>
|
||||
public string AdditionalPublishParameters { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Publish restores by default, this property opts out by default.
|
||||
/// </summary>
|
||||
public bool RestoreOnPublish { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// To publish the application before deployment.
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -54,7 +54,8 @@ namespace Microsoft.AspNetCore.Server.IntegrationTesting
|
|||
var parameters = $"publish "
|
||||
+ $" --output \"{DeploymentParameters.PublishedApplicationRootPath}\""
|
||||
+ $" --framework {DeploymentParameters.TargetFramework}"
|
||||
+ $" --configuration {DeploymentParameters.Configuration}";
|
||||
+ $" --configuration {DeploymentParameters.Configuration}"
|
||||
+ (DeploymentParameters.RestoreOnPublish ? "" : " --no-restore");
|
||||
|
||||
if (DeploymentParameters.ApplicationType == ApplicationType.Standalone)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue