vs 发布时 nuget api无法连接导致长时间停顿

取消勾选

image

或者,打开配置文件,可以看到详细配置
image

选择将第一个

<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />

修改为其他镜像源

华为云: https://repo.huaweicloud.com/repository/nuget/v3/index.json
微软Azure:https://nuget.cdn.azure.cn/v3/index.json
posted @ 2025-07-16 10:17  trykle  阅读(18)  评论(0)    收藏  举报