Skip to content

Disable CLI project.json restore - #6799

Merged
nkolev92 merged 5 commits into
devfrom
dev-nkolev92-disableCLIProjectJsonRestore
Sep 23, 2025
Merged

nkolev92 merged 5 commits into
devfrom
dev-nkolev92-disableCLIProjectJsonRestore

Conversation

@nkolev92

@nkolev92 nkolev92 commented Sep 23, 2025 •

Copy link
Copy Markdown
Member

Bug

Fixes: NuGet/Home#13512
Fixes: NuGet/Home#7199

Description

This is the final piece of code removal that actually detects and restores project.json code.
iow, the final piece that affects what the user can get to.

There is more code removal for our own long term sanity but that'll be handled later.

Note that this is a fairly minimal change that just makes sure the next major version doesn't detect any project.json projects. We can remove more code, but that's more time and we need this merged today.

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.

@nkolev92
nkolev92 requested a review from a team as a code owner September 23, 2025 20:15
Comment thread src/NuGet.Core/NuGet.Commands/RestoreCommand/Utility/PackageSpecFactory.cs Outdated
@nkolev92
nkolev92 requested a review from jeffkl September 23, 2025 22:29
@nkolev92
nkolev92 enabled auto-merge (squash) September 23, 2025 22:29
@nkolev92
nkolev92 merged commit c5b09d5 into dev Sep 23, 2025
17 of 18 checks passed
@nkolev92
nkolev92 deleted the dev-nkolev92-disableCLIProjectJsonRestore branch September 23, 2025 23:16
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.

dotnet restore/Visual Studio conflicting with .esproj + Nx project.json Remove project.json support

3 participants