I had cleared the Nuget cache in my Visual Studio 2022. After that I received errors in ALLyour text my Visual Studio projects. The errors are:
Unable to resolve ‘System.IO.Pipelines (>= 8.0.0)’ for ‘net8.0’. PackageSourceMapping is enabled, the following source(s) were not considered: Microsoft Visual Studio Offline Packages, nuget.org, OfflinePackages.
Unable to resolve ‘System.Text.Json (>= 8.0.0)’ for ‘net8.0’. PackageSourceMapping is enabled, the following source(s) were not considered: Microsoft Visual Studio Offline Packages, nuget.org, OfflinePackages.
and a couple more similar. I tried restoring Nuget Packages but that kept failing. Tried different things from online forums but nothing worked. So I uninstalled Visual Studio from the Visual Studio Installer and downloaded and reinstalled Visual Studio 2022. This did not work either. Seems that even though I uninstalled Visual Studio it apparently kept incorrect settings.
This has effected every project on my computer, so not caused by a setting in one project.
I am at a loss of what to do now. Some forums said to add Package Sources in Visual Studio but nothing tells me what specific package source to add for these files.
This affected all types of projects including but not limited to Blazor apps and Web APIs.
Thanks for any help,
Michael
I expected to be able to successfully build projects.