当我在 Visual Studio 中构建项目时,我看到构建输出中出现这个奇怪的警告:
warning NU1803: You are running the 'restore' operation with an 'HTTP' source, 'http://gitub.com'. Non-HTTPS access will be removed in a future version. Consider migrating to an 'HTTPS' source.
注意“gitub.com”中缺少“h”。
这是从哪里来的?
我的第一个想法是某种恶意软件。 Windows Defender 和 Malwarebytes 没有发现任何结果。
正如 @JonSkeet 提到的,问题是我的 NuGet 配置中的包源配置错误。我只需要更正 NuGet 配置中的源代码。