Improving add package performance by removing extra dg spec files

This commit is contained in:
Ankit Mishra 2017-04-19 10:48:48 -07:00
parent 12dbed613a
commit e36f518d63

View file

@ -94,6 +94,12 @@ namespace Microsoft.DotNet.Tools.Add.PackageReference
// Pass Dependency Graph file output path
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();
if (result != 0)