.net 9 Nuget问题
不能从http源获取包
方案:在NuGet.Config文件中对应行加上allowInsecureConnections="true"
举例:
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="my.nuget.org" value="http://192.168.1.1:8080/v3/index.json" allowInsecureConnections="true" protocolVersion="3" />
</packageSources>
项目引用了有漏洞的包导致编译报错
方案:在项目.csproj文件中加上
<PropertyGroup>
<NuGetAudit>Disable</NuGetAudit>
</PropertyGroup>

浙公网安备 33010602011771号