AutoUpdater.NET Nuget VS2019 Error

AutoUpdater.NET Nuget VS2019 Error unable to install the nuget packages. Unable to connect to host. This error produces a ton of other errors of not being able to install all the packages.

Recently downloaded AutoUpdater.NET and a common issue is the loading of the Nuget packages and every time I tried to run the AutoUpdater.NET and do a build I would get this error telling me that the Nuget package was not found and I had to install it. The issue is when you went to the console and followed the instructions on the Nuget Website for installing, it would just show a bunch of errors.

One of the first steps I performed was checking to see what build the Nuget was built in, it looks like it was from image VS2017. Even running in 2017 seemed to cause an issue. These are the steps I took to resolve the issue.

  1. Check your nuget package manager settings.
  2. Name:nuget.org Source:api.nuget.org/v3/index.json
  3. This is the contents of my Nuget.Config file located at \AppData\Roaming\NuGet

 

<?xml version=”1.0″ encoding=”utf-8″?>
<!– Package restore is enabled –>
<configuration>
<packageRestore>
<add key=”enabled” value=”True” />
<add key=”automatic” value=”True” />
</packageRestore>
<bindingRedirects>
<add key=”skip” value=”False” />
</bindingRedirects>
<packageManagement>
<add key=”format” value=”0″ />
<add key=”disabled” value=”False” />
</packageManagement>
<packageSources>
<add key=”nuget.org” value=”http://api.nuget.org/v3/index.json” />
<add key=”Microsoft Visual Studio Offline Packages” value=”C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\” />
</packageSources>
</configuration>

In the Tools >> Nuget Package Manager >> Package Manager Console and type in the console after PM>

Install-Package AutoUpdater.NET.Official -Version 1.5.6 Check on the AutoUpdater website for the latest version, as time of this post, 1.5.6 is the latest.

** Something extra I also did was in this location: C:\Program Files (x86)\Microsoft SDKs\NuGetPackages I downloaded the nuget package file from the main site and placed it in the a folder called autoupdate.