Cov txheej txheem:

Kuv yuav ntxiv ib pob NuGet rau Visual Studio 2015 li cas?
Kuv yuav ntxiv ib pob NuGet rau Visual Studio 2015 li cas?

Video: Kuv yuav ntxiv ib pob NuGet rau Visual Studio 2015 li cas?

Video: Kuv yuav ntxiv ib pob NuGet rau Visual Studio 2015 li cas?
Video: Niam nkauj mos ab sau nra khiav lawm. 10/9/2017 2024, Hlis ntuj nqeg
Anonim

NuGet Package Manager

  1. Hauv Solution Explorer, right-click References thiab xaiv Tswj NuGet Pob .
  2. Xaiv " nug .org" as the Pob qhov chaw, xaiv qhov Xauj tab, tshawb rau Newtonsoft. Json, xaiv qhov ntawd pob hauv daim ntawv, thiab xaiv Nruab :
  3. Txais cov ntawv tso cai tam sim.

Ib yam li ntawd, nws tau nug, Kuv yuav import ib pob NuGet rau hauv Visual Studio 2015 li cas?

Pob qhov chaw

  1. Xaiv qhov chaw icon hauv pob Tus Thawj Tswj UI tau teev tseg hauv qab no lossis siv Cov Cuab Yeej> Xaiv cov lus txib thiab scroll rau NuGet Package Manager:
  2. Xaiv cov pob Sources node:
  3. Txhawm rau ntxiv qhov chaw, xaiv +, hloov lub npe, nkag mus rau qhov URL lossis txoj hauv kev tswj hwm qhov chaw, thiab xaiv Hloov Kho.

Ib sab saum toj no, kuv yuav qhib ib pob NuGet li cas? ntawm lub toolbar ntawm Assembly Explorer qhov rai lossis xaiv Cov Ntaub Ntawv | Qhib los ntawm NuGet Pob Cache hauv cov ntawv qhia zaub mov tseem ceeb. Qhov no yuav qhib tus Qhib los ntawm NuGet Pob Cache dialog. Cov npe dialog pob khoom los ntawm txhua tus NuGet cache qhov chaw ntawm koj lub tshuab. Siv qhov chaw tshawb nrhiav hauv lub dialog kom pom qhov xav tau pob.

Dhau li ntawd, kuv yuav ua li cas thiaj tsim tau cov ntaub ntawv Nupkg hauv Visual Studio 2017?

Visual Studio 2017 cia li suav nrog NuGet peev xwm thaum a. NET workload raug ntsia. Nruab nuget.exe CLI los ntawm rub tawm nws los ntawm nuget.org, txuag qhov.exe ntaub ntawv rau ib qho haum nplaub tshev , thiab ntxiv qhov ntawd nplaub tshev rau koj PATH ib puag ncig hloov pauv.

Kuv yuav ua li cas qhib pob tus thawj tswj console hauv Visual Studio 2015?

Tom qab txhim kho NuGet lossis yog tias koj siv lub Visual Studio 2015 , ua qhib tus Package Manager Console , nyem rau ntawm Cov Ntawv Qhia Ntawv thiab xaiv NuGet Tus Thawj Tswj Pob thiab ces xaiv Package Manager Console . Ntawm no koj tuaj yeem sau cov lus txib rau nruab cov pob khoom uas xav tau hauv koj daim ntawv thov.

Pom zoo: