From 007e3b6b51028a468e902e7ba3f747454cfd1cb2 Mon Sep 17 00:00:00 2001 From: Mike Harder Date: Mon, 12 Jun 2017 16:59:34 -0700 Subject: [PATCH] Add "--no-restore" parameter to "dotnet publish" (#1101) - Workaround for "dotnet publish fails on app with project reference to netstandard2.0 class library" (https://github.com/dotnet/cli/issues/6843) --- .../Deployers/ApplicationDeployer.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Microsoft.AspNetCore.Server.IntegrationTesting/Deployers/ApplicationDeployer.cs b/src/Microsoft.AspNetCore.Server.IntegrationTesting/Deployers/ApplicationDeployer.cs index 6ec210ba07..d41ba1637a 100644 --- a/src/Microsoft.AspNetCore.Server.IntegrationTesting/Deployers/ApplicationDeployer.cs +++ b/src/Microsoft.AspNetCore.Server.IntegrationTesting/Deployers/ApplicationDeployer.cs @@ -56,6 +56,11 @@ namespace Microsoft.AspNetCore.Server.IntegrationTesting + $" --framework {DeploymentParameters.TargetFramework}" + $" --configuration {DeploymentParameters.Configuration}"; + // Workaround for: + // Publish fails on app with project reference to netstandard2.0 class library + // https://github.com/dotnet/cli/issues/6843 + parameters += " --no-restore"; + if (DeploymentParameters.ApplicationType == ApplicationType.Standalone) { parameters += $" --runtime {GetRuntimeIdentifier()}";