ProGet – Local Cache Package Server For Nuget

由于日常工作使用的是内网,而Visual Studio的包大部分来自于nuget.org,因此打算在本地配置一个报管理服务。

百度到有ProGet这个东西,好像还可以。

准备:

1.安装程序,从ProGet下载,本机没有Sql Server所以下载的是Full Installer版本;

2.Free License,从ProGet申请,永久免费;

安装:

1.安装ProGetSetup4.5.2_SQLExpress.exe,由于已申请了License,选择第三个 Enter License Key,

progetedition

2.选择安装路径;

progettargetdirectory

3.本机没有数据库Sql Server,所以选择安装包中自带的Sql Express。

progetdatabase

4.配置服务托管在IIS,默认端口81;

progetwebserver

5.接下来一直点击Next,直到安装完成;打开http://localhost:81/,网站会是下面这样;

image

6.设置Visual Studio的程序包源。

image

缓存:

1.进入ProGet网站,点击下面Default;

image

2.搜索Nunit,安装并缓存;

image 

image

结果:

这是已经缓存的包。

也可以从本地添加包,点击Add Package,选择本地包(.nupkg后缀)。

image

从PowerShell安装Json包,包来源选择刚刚设置的ProGet.Default;

image

原文地址:https://www.cnblogs.com/Currention/p/6026202.html