Microsoft .NET 6: Kuyika pa Ubuntu kapena Debian ndi zotuluka zake

Microsoft .NET 6: Kuyika pa Ubuntu kapena Debian ndi zotuluka zake

Microsoft .NET 6: Kuyika pa Ubuntu kapena Debian ndi zotuluka zake

Pafupifupi mwezi wapitawo, zosintha zaposachedwa za "Microsoft .NET 6", ndipo monga ambiri akudziwa kale, izi nsanja yachitukuko yaulere, yotseguka, zothandiza pomanga mitundu yonse ya mapulogalamu (Desktop, mafoni, intaneti, masewera ndi intaneti ya zinthu), ilinso ndi nsanja. Choncho, ndi kupezeka kwa Mawindo, Mac OS ndi Linux.

Ndipo popeza, pamodzi ndi Mawonekedwe a Visual Studio,ndi a mkonzi wa code, cross-platform, lotseguka ndi laulere ku Microsoft; awiriwa amapangidwa kuti apange mapulogalamu pa GNU/Linux, lero tikambirana pang'ono za momwe zinthu ziliri pano. Makhalidwendi momwe mungakhalire pa Ubuntu ndi Debian. zomwe, mwa njira, zili nazo thandizo lachilengedwe za onse awiri.

Visual Studio Code 1.69: Mtundu watsopano womwe ulipo komanso momwe ungayikitsire

Visual Studio Code 1.69: Mtundu watsopano womwe ulipo komanso momwe ungayikitsire

Ndipo, musanalowe kwathunthu mumutu wamasiku ano woperekedwa ku pulogalamuyi "Microsoft .NET 6", tisiya kwa iwo omwe ali ndi chidwi, ena maulalo ku zolemba zokhudzana nazo m'mbuyomu:

Visual Studio Code 1.69: Mtundu watsopano womwe ulipo komanso momwe ungayikitsire
Nkhani yowonjezera:
Visual Studio Code 1.69: Mtundu watsopano womwe ulipo komanso momwe ungayikitsire

.NET ndi ML.NET: Microsoft Open Source Platform
Nkhani yowonjezera:
.NET ndi ML.NET: Microsoft Open Source Platform

Microsoft .NET 6: Cross-Platform Framework kuchokera ku Microsoft

Microsoft .NET 6: Cross-Platform Framework kuchokera ku Microsoft

Za Microsoft .NET 6

Mwachidule, tikhoza kuyankhapo "Microsoft .NET 6" chotsatira:

"Ndi nsanja yaulere, yolumikizirana, yotsegulira magwero opanga mapulogalamu ambiri. .NET imachokera pa nthawi yothamanga kwambiri yomwe imagwiritsidwa ntchito popanga mapulogalamu ambiri akuluakulu." Kodi .Net ndi chiyani?

Ndipo mwa ambiri zinthu wotchulidwa mu zake webusaiti yathu, zomwe zikuphatikiza ndi kukomera opanga, kuti lembani bwino malamulo odalirika, ochita bwino kwambiri, titchula izi 3:

  1. Kukhazikitsa code yofanana: Mulinso mtundu wa Task Asynchronous Programming (TAP), womwe umapereka chidziwitso pama code asynchronous.
  2. Kugwiritsa ntchito zizindikiro: Imagwira mawu ofotokozera ngati mawu ofotokozera omwe amafotokoza momwe angasankhire deta, tchulani zinthu zomwe zimagwiritsidwa ntchito polimbikitsa chitetezo, ndikuchepetsa kukhathamiritsa kwa compiler yanthawi yake (JIT).
  3. Kugwiritsa ntchito code analyzers: Zomwe zimapangitsa kuti zikhale zosavuta kuyang'ana C # kapena Visual Basic code pamtundu wa ma code ndi zovuta zamalembedwe. Chifukwa chake, kuyambira ndi .NET 5, magawo awa akuphatikizidwa mu NET SDK ndipo safunikira kukhazikitsidwa padera.

Kuti mumve zambiri za chida cha pulogalamuyo, mutha kuwona maulalo awa: Zida, .NET 6 Zotsitsandi Chatsopano mu .NET 6

Kuyika pa Ubuntu ndi Debian

Kwa kukhazikitsa pa Ubuntu ndi Debian, kapena zotumphukira zake, njira zokhazikitsira ndi izi:

DotNet6 + Debian

Kwa Debian 11

  • Maphukusi okhala ndi makiyi osayina (makiyi osungira)
wget https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
  • Kukhazikitsa SDK
sudo apt-get update && \
  sudo apt-get install -y dotnet-sdk-6.0
  • Kukhazikitsa kwa Runtime
sudo apt-get update && \
  sudo apt-get install -y aspnetcore-runtime-6.0
  • Kukhazikitsa ASP.NET Core Runtime
sudo apt-get install -y dotnet-runtime-6.0

Kuti mumve zambiri komanso zambiri pa kukhazikitsa pa Debian 11, mukhoza kufufuza zotsatirazi kulumikizana.

DotNet6 + Ubuntu

Kwa Ubuntu 22.04

  • Maphukusi okhala ndi makiyi osayina (makiyi osungira)
wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
  • Kukhazikitsa SDK
sudo apt-get update && \
  sudo apt-get install -y dotnet-6.0
  • Kukhazikitsa kwa Runtime
sudo apt-get update && \
  sudo apt-get install -y aspnetcore-runtime-6.0
  • Kukhazikitsa ASP.NET Core Runtime
sudo apt-get install -y dotnet-runtime-6.0

Zindikirani: Chonde dziwani kuti, Ubuntu 22.04, imabwera kale ndi mapulogalamu omwe adayikidwa, chifukwa chake sikofunikira kuchita izi. Komabe, njira yothandiza pamasinthidwe otengera Ubuntu 22.04 komanso ofanana ndi mitundu yakale ya Ubuntu. Ndipo kuti mumve zambiri komanso zambiri pa njira yoyika pa Ubuntu 22.04, mukhoza kufufuza zotsatirazi kulumikizana.

Kuyika cheke

Kamodzi anaika, inu mukhoza kale ntchito anati mapulogalamu kudzera ena monga Mawonekedwe a Visual Studio. Komabe, kwa cheke kuti zonse zimayikidwa bwino komanso zimagwira ntchito, ingoperekani malamulo otsatirawa ndikutsimikizira zomwe zatuluka, monga zikuwonetsedwa pazithunzi zotsatirazi:

dotnet --list-sdks
dotnet --list-runtimes
dotnet --info

Onani kuyika - Screenshot 1

Onani kuyika - Screenshot 2

MOS-P3: Kufufuza za Microsoft Open Source yomwe ikukula ndikukula - Gawo 3
Nkhani yowonjezera:
MOS-P3: Kufufuza za Microsoft Open Source yomwe ikukula ndikukula - Gawo 3
Chizindikiro cha GitLab
Nkhani yowonjezera:
GitLab yalengeza kusamuka kwa mkonzi wake ndi Visual Studio Code

Kuzungulira: Banner post 2021

Chidule

Mwachidule, mu Microsoft pitirizani kupereka monga ena zimphona zamakono ku dziko la Mapulogalamu Aulere ndi Gwero Lotseguka. Ndipo ndi yoperekera uku komanso kupezeka kosavuta kwa zinthu zamapulogalamu monga "Microsoft .NET 6" y Mawonekedwe a Visual Studio, akupitiriza kukonza ntchito ya opanga mapulogalamu pa Machitidwe aulere ndi otseguka, ndiko kuti, Kugawa kwa GNU / Linux.

Ngati mudakonda positiyi, onetsetsani kuti mwayankhapo ndikugawana ndi ena. Ndipo kumbukirani, pitani kwathu «tsamba lakunyumba» kuti muwone zambiri, komanso kujowina njira yathu yovomerezeka ya Telegalamu yochokera ku DesdeLinux, Kumadzulo gulu kuti mumve zambiri pamutu wamasiku ano.


Zomwe zili m'nkhaniyi zikutsatira mfundo zathu za malamulo okonzekera. Kuti mufotokoze cholakwika dinani Apa.

Khalani oyamba kuyankha

Siyani ndemanga yanu

Anu email sati lofalitsidwa. Amafuna minda amalembedwa ndi *

*

*

  1. Wotsogolera pazosankhazi: Miguel Ángel Gatón
  2. Cholinga cha deta: Control SPAM, kasamalidwe ka ndemanga.
  3. Kukhazikitsa: Kuvomereza kwanu
  4. Kulumikizana kwa zomwe zafotokozedwazo: Zomwezo siziziwululidwa kwa anthu ena kupatula pakukakamizidwa mwalamulo.
  5. Zosunga: Zosungidwa ndi Occentus Networks (EU)
  6. Ufulu: Nthawi iliyonse mutha kuchepetsa, kuchira ndikuchotsa zidziwitso zanu.