Remove RestoreOnPublish parameter (#1533)
This commit is contained in:
parent
dd2056ae1a
commit
27e4e1aca3
|
|
@ -35,9 +35,7 @@ namespace Microsoft.AspNetCore.Server.IntegrationTesting
|
|||
+ $" --output \"{publishDirectory.FullName}\""
|
||||
+ $" --framework {deploymentParameters.TargetFramework}"
|
||||
+ $" --configuration {deploymentParameters.Configuration}"
|
||||
+ (deploymentParameters.RestoreOnPublish
|
||||
? string.Empty
|
||||
: " --no-restore -p:VerifyMatchingImplicitPackageVersion=false");
|
||||
+ " --no-restore -p:VerifyMatchingImplicitPackageVersion=false";
|
||||
// Set VerifyMatchingImplicitPackageVersion to disable errors when Microsoft.NETCore.App's version is overridden externally
|
||||
// This verification doesn't matter if we are skipping restore during tests.
|
||||
|
||||
|
|
|
|||
|
|
@ -35,11 +35,6 @@ namespace Microsoft.AspNetCore.Server.IntegrationTesting
|
|||
throw new InvalidOperationException("DeploymentParameters.PublishedApplicationRootPath not supported");
|
||||
}
|
||||
|
||||
if (deploymentParameters.RestoreOnPublish)
|
||||
{
|
||||
throw new InvalidOperationException("DeploymentParameters.RestoreOnPublish not supported");
|
||||
}
|
||||
|
||||
var dotnetPublishParameters = new DotnetPublishParameters
|
||||
{
|
||||
TargetFramework = deploymentParameters.TargetFramework,
|
||||
|
|
|
|||
|
|
@ -147,11 +147,6 @@ 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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue