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:
Mike Harder 2017-06-12 16:59:34 -07:00 committed by GitHub
parent 93868fdf9a
commit 007e3b6b51
1 changed files with 5 additions and 0 deletions

View File

@ -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()}";