Search code examples
c#visual-studiomsbuildnuget-package-restore

Where is this line coming from when I run msbuild? ("gitub.com")


When I build a project in Visual Studio, I am seeing this odd warning appear in the build output:

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.

Notice the 'h' is missing in "gitub.com".

Where is this coming from?

My first thought was some sort of malware. Windows defender and malwarebytes found nothing.


Solution

  • As @JonSkeet mentioned, the issue is a misconfigured package source in my NuGet config. I just needed to correct the source in NuGet config.