[1] .NET Core 5.0 – Install

1 lutego 2022 Wyłączono przez Adam [zicherka] Nogły

[1] Zainstalujemy teraz .NET Core w wersjo 5.0. Posłużymy się do instalacji AppStream.

[root@vlsr01 ~]# dnf install dotnet-runtime-5.0 dotnet-sdk-5.0 dotnet-targeting-pack-5.0 dotnet-templates-5.0 dotnet-hostfxr-5.0                                                                                  Ostatnio sprawdzono ważność metadanych: 3:09:27 temu w dniu wto, 1 lut 2022, 13:16:39.
Rozwiązano zależności.
==================================================================================================================================================================================================================
 Pakiet                                                  Architektura                    Wersja                                                                          Repozytorium                       Rozm.
==================================================================================================================================================================================================================
Instalowanie:
 dotnet-hostfxr-5.0                                      x86_64                          5.0.13-1.el8_5                                                                  appstream                          156 k
 dotnet-runtime-5.0                                      x86_64                          5.0.13-1.el8_5                                                                  appstream                           27 M
 dotnet-sdk-5.0                                          x86_64                          5.0.210-1.el8_5                                                                 appstream                           50 M
 dotnet-targeting-pack-5.0                               x86_64                          5.0.13-1.el8_5                                                                  appstream                          2.4 M
 dotnet-templates-5.0                                    x86_64                          5.0.210-1.el8_5                                                                 appstream                          1.9 M
Instalowanie zależności:
 aspnetcore-runtime-5.0                                  x86_64                          5.0.13-1.el8_5                                                                  appstream                          6.5 M
 aspnetcore-targeting-pack-5.0                           x86_64                          5.0.13-1.el8_5                                                                  appstream                          1.4 M
 dotnet-apphost-pack-5.0                                 x86_64                          5.0.13-1.el8_5                                                                  appstream                          3.8 M
 dotnet-host                                             x86_64                          6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8                          appstream                          109 k
 lttng-ust                                               x86_64                          2.8.1-11.el8                                                                    appstream                          259 k
 netstandard-targeting-pack-2.1                          x86_64                          6.0.0-0.6.28be3e9a006d90d8c6e87d4353b77882829df718.el8                          appstream                          1.5 M

Podsumowanie transakcji
==================================================================================================================================================================================================================
Instalacja  11 pakietów
. . . . .

[root@vlsr01 ~]# dotnet --version
5.0.210

#stwórzmy Hello World! By sprawdzić działanie
[root@vlsr01 ~]# dotnet new console -o helloworld
.NET 5.0 — Zapraszamy!
---------------------
Wersja zestawu SDK: 5.0.210
----------------
Zainstalowano certyfikat deweloperski HTTPS programu ASP.NET Core.
Aby zaufać certyfikatowi, uruchom polecenie „dotnet dev-certs https --trust” (tylko systemy Windows i MacOS).
Dowiedz się więcej o protokole HTTPS: https://aka.ms/dotnet-https
----------------
Napisz swoją pierwszą aplikację: https://aka.ms/dotnet-hello-world
Dowiedz się, co nowego: https://aka.ms/dotnet-whats-new
Zapoznaj się z dokumentacją: https://aka.ms/dotnet-docs
Raportuj problemy i znajdź źródło w serwisie GitHub: https://github.com/dotnet/core
Użyj polecenia „dotnet --help”, aby wyświetlić dostępne polecenia, lub odwiedź stronę https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
Getting ready...
The template "Console Application" was created successfully.
Processing post-creation actions...
Running 'dotnet restore' on helloworld/helloworld.csproj...
  Determining projects to restore...
  Restored /root/helloworld/helloworld.csproj (in 78 ms).
Restore succeeded.

[root@vlsr01 ~]# cd helloworld/
[root@vlsr01 helloworld]# dotnet run
Hello World!