Skip to content

Introduce a setting for automatically disabling the implicit restore #45387

Open
@baronfel

Description

@baronfel

Is your feature request related to a problem? Please describe.

Some users express annoyance that the implicit restore occurs for build and build-related commands, and must be explicitly disabled with each command via the --no-restore CLI flag. Those users would prefer to manage restores explicitly and not pay the price for the restore on each subsequent step.

Similar logic follows for situations where the build is implicit, like dotnet run - these should be as fast as possible in the minds of these users and so implicit behaviors should be disabled by default, requiring explicit orchestration.

Describe the solution you'd like

We should have some centralized preference or configuration that lets a user opt out of implicit restore and all build-triggering commands should adhere to that preference

Additional context

Metadata

Metadata

Assignees

Labels

Area-CLIcli-uxIssues and PRs that deal with the UX of the CLI (exit codes, log output, verbs/options, and so on)config-system-candidateIssues that could be solved cleanly if the .NET CLI had a git-like configuration systemuntriagedRequest triage from a team member

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions