Create a private nuget server

​(1)https://docs.microsoft.com/en-us/nuget/hosting-packages/nuget-serverapi

(1.2) depoly to IIS(http://localhost:53673)spa

(1.3)  config you apiKey if need. else you can set 'false'server

(2)Create a ClassLibrary projectget

(3)nuget pack ClassLibrary3.csprojit

(4)nuget push .\ClassLibrary3.1.0.0.nupkg -Source http://localhost:53673/nugetio

(5)Create a Console projectclass

(6)VS tools Add a package source(http://localhost:53673/nuget)csp

(7)Manage Packages for Solution - Search (you library name)tools

 

ps: with api key schemaco

<add key="apiKey" value="passw0rd" />

nuget push .\ClassLibrary3.1.0.0.3.nupkg passw0rd -Source http://localhost:53673/nuget

相關文章
相關標籤/搜索