Skip to content

Add ability to disable the writing of the dependency graph spec file - #7239

Merged
nkolev92 merged 3 commits into
devfrom
dev-jeffkl-donotwritedependencygraphspec
Apr 7, 2026
Merged

nkolev92 merged 3 commits into
devfrom
dev-jeffkl-donotwritedependencygraphspec

Conversation

@jeffkl

@jeffkl jeffkl commented Mar 27, 2026 •

Copy link
Copy Markdown
Contributor

Bug

Fixes: NuGet/Home#14114

Description

This will allow users to disable the writing of the DGSpec file since for large restores it can add a measurable amount of overhead. The guidance would be to only enable this option in a hosted build environment like:

<PropertyGroup>
  <!-- Do not write out NuGet's dgspec file in our hosted build environment -->
  <RestoreDoNotWriteDependencyGraphSpec Condition="'$(ContinuousIntegrationBuild)' == 'true'">true</RestoreDoNotWriteDependencyGraphSpec>
</PropertyGroup>

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@jeffkl jeffkl self-assigned this Mar 27, 2026
@jeffkl
jeffkl requested a review from a team as a code owner March 27, 2026 18:17
@jeffkl
jeffkl requested review from jebriede and kartheekp-ms March 27, 2026 18:17
@Frulfump

Frulfump commented Mar 28, 2026 •

Copy link
Copy Markdown

nit: The property in the PR description has a typo of Sepc instead of Spec

@jeffkl
jeffkl requested a review from nkolev92 March 30, 2026 16:45

@nkolev92 nkolev92 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor comments, LGTM after that.

jebriede
jebriede previously approved these changes Mar 31, 2026
@nkolev92
nkolev92 merged commit 44523a4 into dev Apr 7, 2026
16 checks passed
@nkolev92
nkolev92 deleted the dev-jeffkl-donotwritedependencygraphspec branch April 7, 2026 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add option to not write out dependency graph spec

4 participants