From eb9591e21239c1adbc1395a12e9b53c8e48a8fd0 Mon Sep 17 00:00:00 2001 From: hjhan Date: Sun, 16 Aug 2026 12:57:06 +0800 Subject: [PATCH] =?UTF-8?q?chore(build):=20nuget.config=20=E5=86=85?= =?UTF-8?q?=E7=BD=91=20Nexus=20HTTP=20=E6=BA=90=E8=A1=A5=20allowInsecureCo?= =?UTF-8?q?nnections=EF=BC=8C=E4=BF=AE=E5=A4=8D=20NU1302?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NuGet 新版(VS 设计时 restore / SDK 7+)强制 HTTPS 源,内网 git.yiliantech.com/nexus 仅有 HTTP,导致 YLErp.Resources/MailKit/Security/Cache/Core 还原报 NU1302。按官方指定开关显式放行该源;nuget.org 仍走 HTTPS 不受影响。 验证:dotnet restore --force 真实触源成功,全解决方案编译 0 错误。 --- nuget.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuget.config b/nuget.config index f2b6aae0..604ef056 100644 --- a/nuget.config +++ b/nuget.config @@ -3,6 +3,6 @@ - +