Add "--no-restore" parameter to "dotnet run" (#1104)

- Workaround for "Publish fails on app with project reference to netstandard2.0 class library" (https://github.com/dotnet/cli/issues/6843)
This commit is contained in:
Mike Harder 2017-06-13 10:39:58 -07:00 committed by GitHub
parent 007e3b6b51
commit 78877b6ba2
1 changed files with 8 additions and 1 deletions

View File

@ -96,7 +96,14 @@ namespace Microsoft.AspNetCore.Server.IntegrationTesting
var targetFramework = DeploymentParameters.TargetFramework ?? (DeploymentParameters.RuntimeFlavor == RuntimeFlavor.Clr ? "net461" : "netcoreapp2.0");
executableName = DotnetCommandName;
executableArgs = $"run --framework {targetFramework} {DotnetArgumentSeparator}";
executableArgs = $"run --framework {targetFramework}";
// Workaround for:
// Publish fails on app with project reference to netstandard2.0 class library
// https://github.com/dotnet/cli/issues/6843
executableArgs += " --no-restore";
executableArgs += $" {DotnetArgumentSeparator}";
}
executableArgs += $" --server.urls {hintUrl} "