Cov txheej txheem:

Kuv yuav rov ua qhov NuGet rov qab li cas?
Kuv yuav rov ua qhov NuGet rov qab li cas?

Video: Kuv yuav rov ua qhov NuGet rov qab li cas?

Video: Kuv yuav rov ua qhov NuGet rov qab li cas?
Video: UA KAWG PEEV XWM -May maylee [official] New Song/MV/VDO 2024, Kaum ib hlis
Anonim

Kev daws teeb meem ceev rau cov neeg siv Visual Studio

  1. Xaiv cov cuab yeej > NuGet Pob Manager > Pob Manager Settings menu hais kom ua.
  2. Teem ob qho kev xaiv hauv qab Package Restore .
  3. Xaiv OK.
  4. Tsim koj qhov project dua.

Raws li, Kuv yuav ua li cas thiaj li khiav Nuget pob rov qab?

Restore tej pob khoom manually siv Visual Studio

  1. Pab kom pob rov qab los ntawm kev xaiv Cov Cuab Yeej> Kev Xaiv> NuGet Pob Tus Thawj Tswj. Nyob rau hauv pob Restore xaiv, xaiv Cia NuGet rub tawm cov pob uas ploj lawm.
  2. Hauv Solution Explorer, txoj nyem rau ntawm qhov kev daws teeb meem thiab xaiv Restore NuGet Packages.

Kuj Paub, Kuv yuav rov qab kho qhov Visual Studio li cas? Txhawm rau pab kom cov yam ntxwv no, los ntawm cov ntawv qhia zaub mov tseem ceeb, mus rau Cov Cuab Yeej> Kev Xaiv thiab xaiv " Tej yaam num thiab Solutions" thiab xaiv " Rov qab los kev daws teeb meem explorer qhov project hierarchy xeev ntawm kev daws teeb meem load" checkbox. Nrog rau qhov kev xaiv no enabled, Visual Studio yuav thauj koj cov kev daws teeb meem nrog kev sib tsoo / nthuav tawm lub xeev ntawm kev daws teeb meem explorer.

Ntawm no, kuv yuav yuam kom ib pob Nuget rov nruab li cas?

Hloov mus rau Browse tab, tshawb rau cov pob npe, xaiv nws, ces xaiv Install). Rau txhua tus pob khoom , delete cov pob folder, ces khiav nug nruab. Rau ib leeg pob , delete cov pob folder thiab siv nug nruab rau rov nruab tib ib.

Dotnet restore ua dab tsi?

Cov dotnet rov hais kom siv NuGet rau rov qab los dependencies nrog rau qhov project-cov cuab yeej tshwj xeeb uas yog teev nyob rau hauv qhov project file. Los ntawm lub neej ntawd, kev kho dua tshiab ntawm kev vam khom thiab cov cuab yeej yog raug tua nyob rau hauv parallel. Koj qhia ntxiv pub ntxiv los ntawm kev tsim koj tus kheej nuget. config file hauv qhov project directory.

Pom zoo: