Nóta
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað aðskrá þig inn eða breyta skráasöfnum.
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað að breyta skráasöfnum.
.NET CLI
The --interactive flag for the .NET CLI now defaults to true in user-centric scenarios. The behavior remains unchanged for CI/CD environments.
Version introduced
.NET 10
Previous behavior
Previously, the --interactive flag always defaulted to false unless explicitly specified by the user.
dotnet restore --interactive
# Required explicitly to enable interactivity
New behavior
The --interactive flag defaults to true in user-centric scenarios, such as when commands are run directly by a user. In CI/CD environments or when the process output stream is redirected, the flag defaults to false.
dotnet restore
# Interactivity is enabled by default in user-centric scenarios
Type of breaking change
This is a behavioral change.
Reason for change
This change improves the user experience by:
- Simplifying NuGet authentication, addressing a common pain point.
- Providing a unified signal for enabling future CLI interactivity features.
Recommended action
No action is required for most users. To explicitly disable interactivity, pass the --interactive false flag:
dotnet restore --interactive false
Affected APIs
None.