Skip to content

Nuget

添加 Nuget 源

dotnet nuget add source "http://192.168.0.1/mypath/index.json" --name mylocalNuget --username "lxfy" --password "123456" 

推送

dotnet nuget push xxx.nupkg -s mylocalNuget

为 Nuget 设置代理

在 C:\Users\UserName\AppData\Roaming 下找到 NuGet\NuGet.Config 文件,添加下面这一段:

  <config>
    <add key="http_proxy" value="http://127.0.0.1:1080" />
  </config>

ref: NuGet behind a proxy - Stack Overflow

Snippets

将本地的包批量提交到远程: https://gist.github.com/luoxufeiyan/b3c245ed461350235072f0ced85b17af