2021年4月1日星期四

Can't solve the following error on Visual Studio: NuGet Package restore failed for project. Unable to find the version of a package

I cloned a project from a repository, and when I Build the project solution, it throws an error such as:

NuGet Package restore failed for project. Unable to find the version of a package.

I went to the Nuget "Package Manager for Solution" to restore the missing nuget packages, but I can't seem to restore as it keeps throwing the following error and blocks me from restoring the missing Nuget packages:

An error occurred while trying to restore packages: Unable to find the version of a package "ExamplePackage" is not found on the source: C:\Program Files(x86)\Microsoft SDKs\NuGetPackages https://api.nuget.org/v3/index.json: Package "ExamplePackage" is not found on source https://api.nuget.org/v3/index.json

I tried to remove the error references inside my package.config and also in my .csproj files, so that I can re-install those packages. However this doesn't seem to work because, when I tried to browse in the NuGet Package Manger, for the packages I need to install , they are not available for installation.

It is odd because I do see the missing packages inside my bin folder. Could I possibly remap to it manually? I am not sure how to fix this problem.

https://stackoverflow.com/questions/66849013/cant-solve-the-following-error-on-visual-studio-nuget-package-restore-failed-f March 29, 2021 at 01:05PM

没有评论:

发表评论