Merge pull request #6358 from dotnet/dev-anmishr-addimprovement

Improving add package performance by removing extra dg spec files
This commit is contained in:
Ankit Mishra 2017-04-19 12:36:44 -07:00 committed by GitHub
commit ca8d61960e

View file

@ -94,6 +94,12 @@ namespace Microsoft.DotNet.Tools.Add.PackageReference
// Pass Dependency Graph file output path // Pass Dependency Graph file output path
args.Add($"/p:RestoreGraphOutputPath=\"{dgFilePath}\""); args.Add($"/p:RestoreGraphOutputPath=\"{dgFilePath}\"");
// Turn off recursive restore
args.Add($"/p:RestoreRecursive=false");
// Turn off restore for Dotnet cli tool references so that we do not generate extra dg specs
args.Add($"/p:RestoreDotnetCliToolReferences=false");
var result = new MSBuildForwardingApp(args).Execute(); var result = new MSBuildForwardingApp(args).Execute();
if (result != 0) if (result != 0)