zoukankan      html  css  js  c++  java
  • NuGet镜像上线试运行团队

    为解决国内访问NuGet服务器速度不稳定的问题,我们用阿里云服务器搭建了一个NuGet镜像,目前已上线试运行。

    使用NuGet镜像源的方法如下:

    1)NuGet镜像源地址:https://nuget.cnblogs.com/v3/index.json

    2)在NuGet.Config中添加这个镜像源:

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <packageSources>
        <add key="nuget.cnblogs.com" value="https://nuget.cnblogs.com/v3/index.json" protocolVersion="3" />
        <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
      </packageSources>
      <packageRestore>
        <add key="enabled" value="True" />
        <add key="automatic" value="True" />
      </packageRestore>
      <bindingRedirects>
        <add key="skip" value="False" />
      </bindingRedirects>
    </configuration>

    注:NuGet.Config 在 Windows 中路径是 %appdata%NuGetNuGet.Config ,在 Mac 与 Linux 中的路径是 ~/.nuget/NuGet/NuGet.Config ,如果没有 NuGet.Config 文件,可以运行 dotnet restore 命令生成。

    或者在Visual Studio中的添加方法:

    由于目前带宽有限,如果出现下面的问题,说明当前带宽跑满了,您可以稍后再试。

    The download of 'https://nuget.cnblogs.com/v3-flatcontainer/system.runtime.extensions/4.3.0/system.runtime.extensions.4.3.0.nupkg' timed out because no data was received for 60000ms.
  • 相关阅读:
    docker怎么修改之前run时的env
    yum安装mysql
    springboot服务的Dockerfile
    openssh升级到8.4
    rpm与yum执行无反应
    ubuntn离线安装docker-ce
    centos7部署docker
    解决5版本的elasticsearch-head连接6版本的elasticsearch查询不到数据问题
    docker搭建elasticsearch:7.6.2并开启x-pack
    原生js 实现图片的拖拽缩放
  • 原文地址:https://www.cnblogs.com/cmt/p/nuget-mirror.html
Copyright © 2011-2022 走看看