Merge pull request #6358 from dotnet/dev-anmishr-addimprovement
Improving add package performance by removing extra dg spec files
This commit is contained in:
commit
ca8d61960e
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue