Cov txheej txheem:

Kuv yuav tsim ib pob Nuget hauv Visual Studio li cas?
Kuv yuav tsim ib pob Nuget hauv Visual Studio li cas?

Video: Kuv yuav tsim ib pob Nuget hauv Visual Studio li cas?

Video: Kuv yuav tsim ib pob Nuget hauv Visual Studio li cas?
Video: Txuj kev kws kuv yuav moog- Muaj kub Yang- xf puav pheej Yang 2024, Hlis ntuj nqeg
Anonim

Koj tuaj yeem teeb tsa Visual Studio kom tau txais cov pob NuGet thaum koj tsim qhov project

  1. Hauv Solution Explorer, right-click qhov project thiab xaiv Properties.
  2. Hauv pob tab, xaiv Tsim pob NuGet ntawm kev tsim.

Tom qab ntawd, ib tus tuaj yeem nug, Kuv yuav tsim pob NuGet li cas hauv Visual Studio 2019?

Tsim NuGet Pob hauv Visual Studio 2019 Nyob rau Pob tab, xaiv Tsim NuGet pob ntawm kev tsim. Thiab sau qee cov ntaub ntawv tsim nyog. Cov Pob ID yog qhov tseem ceeb tshaj plaws, uas yog, tus ID siv thaum tus neeg siv kawg nruab koj NuGet pob . Nws tsis zoo ib yam li Product.

Tsis tas li ntawd, kuv yuav tsim ib pob NuGet li cas? Tsim lub pob

  1. Hauv kab hais kom ua lossis PowerShell, mus rau koj qhov project directory.
  2. Khiav: nuget pob Nuget. Package. Name.nuspec. Yog tias txhua yam mus zoo koj yuav tsum tam sim no muaj cov ntaub ntawv tsim tawm.nupkg.
  3. Qhib cov generated. nupkg cov ntaub ntawv hauv Nuget Package Manager thiab saib seb nws zoo li raug.

Raws li, kuv yuav tsim ib pob NuGet hauv Visual Studio 2017 li cas?

Visual Studio 2017 cia li suav nrog NuGet muaj peev xwm thaum a. NET workload raug ntsia. Nruab lub nug .exe CLI los ntawm rub tawm nws los ntawm nug .org, txuag cov ntaub ntawv.exe mus rau ib daim nplaub tshev uas tsim nyog, thiab ntxiv cov ntawv tais ceev tseg rau koj qhov PATH ib puag ncig hloov pauv.

Kuv yuav tsim cov ntaub ntawv Nuspec hauv Visual Studio li cas?

Koj tuaj yeem teeb tsa Visual Studio kom tau txais cov pob NuGet thaum koj tsim qhov project

  1. Hauv Solution Explorer, right-click qhov project thiab xaiv Properties.
  2. Hauv pob tab, xaiv Tsim pob NuGet ntawm kev tsim.

Pom zoo: