Engineering scalable systems, cloud-native applications, and AI-powered solutions.

Unable to install NuGet package as NuGet packages are Offline Only in Visual Studio

You may be facing this issue when working with recently installed Visual Studio.

Ankush Jain

Ankush Jain

Lead Software Engineer (VP) | Software Architect

Published Jan 14, 2022Updated Nov 24, 2026

You may be facing this issue when working with recently installed Visual Studio.

Root Cause:

By default, Visual Studio comes with only one source of NuGet package, which is Microsoft Visual Studio Offline Packages. See the below picture.

Unable to install NuGet package as NuGet packages are Offline Only in Visual Studio

Solution

To fix this issue, just add one more NuGet package source with the below values.

Unable to install NuGet package as NuGet packages are Offline Only in Visual Studio

That's all :)

Have feedback or thoughts?

Discuss this article or share it on Twitter / GitHub.