Bilgisayarımızda yüklü olan şablonları update komutu ile güncelleyebiliyoruz.
İlk olarak --help opsiyonu ile komut hakkında bilgi alalım.
dotnet new update --help
Komutu kullandığımızda aşağıda da belirtildiği gibi yüklü olan paketlerin güncellemeleri bilgisayarımıza indirilip yükleniyor.
Burada paket seçimi maalesef yapılamıyor. Komut ile tüm paketler güncellenebiliyor.
eg@debian:~$ dotnet new update --help
Description:
Checks the currently installed template packages for update, and install the updates.
Usage:
dotnet new update [options]
Options:
--interactive Allows the command to stop and wait for user input or action (for example to complete authentication).
--add-source, --nuget-source <nuget-source> Specifies a NuGet source to use during install.
--check-only, --dry-run Only checks for updates and display the template packages to be updated without applying update.
-v, --verbosity <LEVEL> Sets the verbosity level. Allowed values are q[uiet], m[inimal], n[ormal], and diag[nostic]. [default: normal]
-d, --diagnostics Enables diagnostic output.
-?, -h, --help Show command line help.
dotnet new update
Komutu aşağıdaki gibi kullandığımızda görüldüğü gibi herhangi bir güncelleme olmadığı için yükleme işlemi yapılmadı.
eg@debian:~$ dotnet new update
All template packages are up-to-date.