#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>
|
/// </summary>
|
||||||
public string AdditionalPublishParameters { get; set; }
|
public string AdditionalPublishParameters { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Publish restores by default, this property opts out by default.
|
||||||
|
/// </summary>
|
||||||
|
public bool RestoreOnPublish { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// To publish the application before deployment.
|
/// To publish the application before deployment.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,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.RestoreOnPublish ? "" : " --no-restore");
|
||||||
|
|
||||||
if (DeploymentParameters.ApplicationType == ApplicationType.Standalone)
|
if (DeploymentParameters.ApplicationType == ApplicationType.Standalone)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue