dotnet/announcements

dotnet restore is now an implicit command

richlander opened this issue · 1 comments

dotnet restore is now an implicit command

With the release of .NET Core SDK 2.0, the dotnet restore command is now implicit for commands that require a restore to occur. In most cases, you no longer need to use dotnet restore. Build systems or other forms of automation may still want to call dotnet restore explicitly to control the time in which the restore occurs and potential uses of the network.

The following commands implicitly call restore:

  • new
  • run
  • build
  • publish
  • pack
  • test

You can pass --no-restore to any of these commands to disable implicit restore.

Details

Impact

The .NET Core development experience no longer requires explicit use of the dotnet restore command. This improvement is delivered with the .NET Core 2.0 SDK and works independent of the target framework.

Reopening according to process.