Nuget 相关

1:服务器搭建

1.1:创建空的Web Application

1.2:引用NuGet.Server 包:NuGet.Server

安装完成后的界面

web.config 已经被重写了,里面存在一些配置。

1.3:部署该网站

2:安装包--NuGet Package Explorer 

GUI:http://docs.nuget.org/Create/using-a-gui-to-build-packages

或者通过:http://docs.nuget.org/Create/Creating-and-Publishing-a-Package

这里我们选择GUI工具:

2.1:添加包

2.2:发布包

成功上传

注意:上传这部可能发生错误提示:"Method Not Allowed" 

修改配置文件:

Add the following to the beginning of <system.webServer><modules>:<remove name="WebDAVModule" />
Add the following to the beginning of <system.webServer><handlers>:<remove name="WebDAV" />

这里的PublishKey即是配置文件中的apiKey:

 3:在线包管理

列出所有已安装的包,双击对应的包即可直接进行管理

命令行参考:

https://docs.nuget.org/consume/command-line-reference

下载nuget.exe

删除包: nuget delete GG.Framework 1.0.0.0 -source http://local.nuget.com/

原文地址:https://www.cnblogs.com/grayguo/p/5358256.html