Visual Studio 2022 - NuGet Package Restore scenarios with 'how to to find version' scenarios for Custom Feed
I'm stuck on something that should probably be simple. I'm refactoring my project and I'm testing a new approach and I'm stuck on something that should probably be simple. I'm sure I'm missing something obvious here, but I'm working with an scenario with NuGet package restoration in Visual Studio 2022 when trying to restore packages from a custom NuGet feed that I set up. The feed is properly configured in the NuGet Package Manager settings, but when I attempt to restore my project, I receive the following behavior message: 'Unable to find version x.x.x of package [PackageName]'. I've confirmed that the version I specified is indeed available in the feed. Here's a snippet of my `*.csproj` file for reference: ```xml <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net5.0</TargetFramework> </PropertyGroup> <ItemGroup> <PackageReference Include="[PackageName]" Version="x.x.x" /> </ItemGroup> </Project> ``` I've also tried running `dotnet restore` from the command line, and I receive the same behavior. Additionally, I've checked my `NuGet.config` file to ensure the source is correctly listed: ```xml <configuration> <packageSources> <add key="CustomFeed" value="http://mycustomfeed.com/nuget" /> </packageSources> </configuration> ``` I can access the feed URL from a browser without issues. To troubleshoot, I tried clearing the local NuGet caches using `dotnet nuget locals all --clear`, but that did not resolve the question. The feed is secured, and I have configured the necessary credentials. I also confirmed that my `NuGet.config` file is located in the correct directory (solution level). Is there something I might be missing in the configuration, or is there another common scenario that could cause this behavior? Any help would be greatly appreciated! This is part of a larger API I'm building. What am I doing wrong? This is part of a larger application I'm building. I recently upgraded to C# latest. Any pointers in the right direction? I've been using C# for about a year now. I appreciate any insights!