Koj puas tuaj yeem khiav a.NET daim ntawv thov ntawm Linux?
Koj puas tuaj yeem khiav a.NET daim ntawv thov ntawm Linux?

Video: Koj puas tuaj yeem khiav a.NET daim ntawv thov ntawm Linux?

Video: Koj puas tuaj yeem khiav a.NET daim ntawv thov ntawm Linux?
Video: puas yog koj ntshai yuav kuv ntsaim vaj 2022 -2023 2024, Kaum ib hlis
Anonim

Yog koj yuav tsum tsim ib tug loj, complex enterprise daim ntawv thov uas khiav ntawm Linux , koj yuav feem ntau siv Java. Tam sim no muaj lwm txoj hauv kev uas tab tom loj hlob thiab tau txais koob meej-- koj khiav tau . NET applications ntawm Linux , siv qhov qhib Mono runtime. NET binaries tsis tas yuav muaj kev hloov pauv.

Tom qab ntawd, C# daim ntawv thov tuaj yeem khiav ntawm Linux?

Yuav sau thiab ua C# program rau Linux , ua ntej koj yuav tsum tau IDE. Ntawm Linux , ib qho ntawm IDE zoo tshaj plaws yog Monodevelop. Nws yog qhov qhib qhov IDE uas tso cai rau koj mus khiav C# ntawm ntau lub platform xws li Windows, Linux thiab MacOS. Multi-platform IDE - Txhawb nqa Linux , Windows thiab macOS.

Ib sab saum toj no, kuv yuav ua li cas khiav mono application ntawm Linux? Khiav Windows Forms ntawm Linux nrog Mono

  1. Kauj ruam 1 - Nruab Mono. Qhib lub qhov rais davhlau ya nyob twg, thiab xyuas kom tseeb tias txhua yam yog hloov tshiab nrog cov lus txib hauv qab no: sudo apt-tau hloov tshiab sudo apt-tau hloov tshiab.
  2. Kauj ruam 2 - Tsim ib daim ntawv thov. Tam sim no peb yuav tsum tsim peb cov ntaub ntawv C#.
  3. Kauj ruam 3 - Sau thiab khiav. Tam sim no peb npaj txhij los sau.
  4. Noj ntxiv.

Hais txog qhov no, puas yog ASP net khiav ntawm Linux?

Kev tshaj tawm thiab khiav koj ASP . NET Core project rau Linux . Muab qhov ntawd. NET Core, raws li lub sijhawm ua haujlwm, yog ob qho tib si qhib thiab ntau lub platform nws yooj yim rau kev nkag siab lub siab xav khiav koj ASP . NET Core project ntawm a Linux tus tswv tsev. Xyaum ib txwm koj ua tau nrhiav ib Linux webhost pheej yig dua li Windows webserver.

Puas yog C# zoo dua Java?

Syntax yog qhov zoo rau ib yam nkaus xwb: tso cai sai dua tsiv teb tsaws los ntawm cov lus zoo sib xws. Qhov ntawd yog nws. C# yog loj heev zoo dua Java . Xav txog lawv qhov kev txhawb nqa dav dav thiab ua haujlwm tau zoo- C# yog txoj kev ua ntej Java.

Pom zoo: