Attempt to fix tests when building in ProdCon

This commit is contained in:
Nate McMaster 2018-04-21 08:14:28 -07:00
commit 122b07bb1c
No known key found for this signature in database
GPG Key ID: A778D9601BD78810
1 changed files with 3 additions and 1 deletions

View File

@ -97,7 +97,9 @@ namespace Microsoft.AspNetCore.Server.IntegrationTesting
var targetFramework = DeploymentParameters.TargetFramework ?? (DeploymentParameters.RuntimeFlavor == RuntimeFlavor.Clr ? "net461" : "netcoreapp2.0");
executableName = DotnetCommandName;
executableArgs = $"run --no-restore --framework {targetFramework} {DotnetArgumentSeparator}";
// 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.
executableArgs = $"run --no-restore --framework {targetFramework} /p:VerifyMatchingImplicitPackageVersion=false {DotnetArgumentSeparator}";
}
executableArgs += $" --server.urls {hintUrl} "