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)
This commit is contained in:
parent
93868fdf9a
commit
007e3b6b51
|
|
@ -56,6 +56,11 @@ namespace Microsoft.AspNetCore.Server.IntegrationTesting
|
||||||
+ $" --framework {DeploymentParameters.TargetFramework}"
|
+ $" --framework {DeploymentParameters.TargetFramework}"
|
||||||
+ $" --configuration {DeploymentParameters.Configuration}";
|
+ $" --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)
|
if (DeploymentParameters.ApplicationType == ApplicationType.Standalone)
|
||||||
{
|
{
|
||||||
parameters += $" --runtime {GetRuntimeIdentifier()}";
|
parameters += $" --runtime {GetRuntimeIdentifier()}";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue