Cov txheej txheem:

Yuav ua li cas kuv khiav mono application ntawm Linux?
Yuav ua li cas kuv khiav mono application ntawm Linux?

Video: Yuav ua li cas kuv khiav mono application ntawm Linux?

Video: Yuav ua li cas kuv khiav mono application ntawm Linux?
Video: Mathematics with Python! Evaluating Polynomials 2024, Kaum ib hlis
Anonim

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 qho 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.

Raws li, peb tuaj yeem khiav. NET daim ntawv thov ntawm Linux?

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. Thiab yog li ntawd nws --Mono yuav khiav koj. NET binaries tsis tas yuav muaj kev hloov pauv.

Tsis tas li ntawd, puas yog. NET core sai dua ntawm Linux? ASP. NET Core yog ceev ceev ntawm Linux (thiab hauv Windows).

Tsis tas li ntawd, Linux Mono yog dab tsi?

Mono yog ib qho piv txwv ntawm cov txheej txheem hla-platform muaj nyob rau ntawm Windows, macOS, Linux , thiab ntau dua. Nws yog thawj zaug tsim los ua qhov qhib qhov kev siv ntawm. NET Framework rau Linux . Mono muab cov txhais tau tias los sau, thiab khiav C# cov kev pab cuam, zoo ib yam li cov. NET Framework.

Puas tuaj yeem C# code 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.

Pom zoo: