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:
parent
007e3b6b51
commit
78877b6ba2
|
|
@ -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} "
|
||||
|
|
|
|||
Loading…
Reference in New Issue