当前位置:网站首页>C nuget offline cache package installation

C nuget offline cache package installation

2022-06-26 06:33:00 five hundred and ninety-six million seven hundred and eighty-fi

If there is a net , add to NuGet The dependencies inside are very simple , Search it out and install it directly .

Get down to business , Let's talk about offline installation NuGet The problem of package dependencies .
1
. Go to Nuget Download cache package
https://www.nuget.org/ This is a NuGet Official website , Click in , Then search the installation package you need in the search box , With Dapper For example .
 Insert picture description here
2 choice Dapper
 Insert picture description here
3. Click to select a version , And then I'm gonna go ahead and download package
 Insert picture description here
4. open Tools ->NuGet Package manager -> Package manager settings , find NuGet The local path of the package cache . Here's the picture :

 Insert picture description here
5 Put the downloaded offline package in the folder of the cache address .
 Insert picture description here
6 Open... In the project Tools ->NuGet Package manager -> Console , And enter the command :Install-Package Dapper -Version 1.50.1, Installation .
If it doesn't work, try this command , Bring the address

Install-Package Dapper -Source C:\Users\Administrator\AppData\Local\NuGet\Cache

At this step, the compilation interface will appear .
Basically, it can be compiled successfully , Add the dependency package to the project .

原网站

版权声明
本文为[five hundred and ninety-six million seven hundred and eighty-fi]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/177/202206260621136065.html