PCL project yog dab tsi?
PCL project yog dab tsi?

Video: PCL project yog dab tsi?

Video: PCL project yog dab tsi?
Video: Shared vs PCL projects 2024, Hlis ntuj nqeg
Anonim

PCL tej yaam num phiaj xwm tshwj xeeb uas txhawb nqa cov txheej txheem BCL paub / cov yam ntxwv. Txawm li cas los, lub downside rau PCL yog tias lawv feem ntau xav tau kev siv vaj tse ntxiv kom cais cov profile tshwj xeeb rau hauv lawv cov tsev qiv ntawv.

Ua raws li qhov xav tau, qhov sib txawv ntawm qhov kev sib koom ua haujlwm thiab PCL yog dab tsi?

Cov qhov sib txawv ntawm a qhia txog qhov project thiab lub tsev qiv ntawv hauv chav kawm yog qhov tom kawg tau muab tso ua ke thiab chav tsev ntawm kev rov siv dua yog qhov sib dhos. Whereas nrog tus qub, chav tsev ntawm kev rov siv dua yog qhov chaws, thiab cov qhia code yog muab tso rau hauv txhua lub rooj sib txoos uas hais txog qhov qhia txog qhov project.

Ib sab saum toj no, kuv yuav ua li cas thiaj tsim tau lub tsev qiv ntawv portable hauv Visual Studio 2017? Rau tsim a Portable Class Library , siv lub template muab rau hauv Visual Studio . Tsim ib qhov project tshiab (File> New Project), thiab hauv New Project dialog box, xaiv koj cov lus programming ( Visual C# los yog Visual Basic ). Ces, xaiv lub Chav tsev qiv ntawv (Leejtwg Portable ) template.

Ib yam li ib tug yuav nug,. NET PCL yog dab tsi?

Qhov project Portable Class Library tso cai rau koj sau thiab tsim cov rooj sib tham tswj uas ua haujlwm rau ntau tshaj ib qho. NET Framework platform. Koj tuaj yeem tsim cov chav kawm uas muaj cov lej koj xav qhia thoob plaws ntau qhov haujlwm, xws li kev sib koom ua lag luam logic, thiab tom qab ntawd siv cov chav kawm los ntawm ntau hom haujlwm.

Sib koom code yog dab tsi?

Sib koom Tej yaam num cia koj sau ib yam code uas yog hais los ntawm ib tug xov tooj ntawm txawv daim ntawv thov tej yaam num. Cov code tau muab tso ua ke ua ib feem ntawm txhua qhov project referencing thiab tuaj yeem suav nrog cov lus qhia ua ke los pab koom nrog kev ua haujlwm tshwj xeeb hauv lub platform rau hauv qhia code puag.

Pom zoo: