Unable to find nuget local source error occurred while restoring nuget packages the local source doesn't exist

前端 未结 5 1107
说谎
说谎 2021-02-12 05:57

I\'ve been given a visual studio 2017 solution. When I open it fails as with the error:

Error occurred while restoring NuGet packages: The local source \'\\\\netw

5条回答
  •  时光说笑
    2021-02-12 06:29

    The package sources can be found in the Visual Studio options (Tools -> Options) under NuGet Package Manager -> Package Sources or directly by clicking on the according icon in the NuGet dialog (context menu of a solution/project -> Manage NuGet Packages...):

    Your local package source should then be listed in the following dialog:

    The package source may, however, be solution or project specific and may therefore be specified in a NuGet.config file in the solution directory. Beginning with NuGet 3.4, Visual Studio looks in the project's directory or "or any folder up to the drive root", according to the NuGet.config reference. Up to NuGet 3.3, also subdirectories with the name .nuget where searched for NuGet.config files.

    The file containing your local package source must be changed in order to restore the correct packages.

提交回复
热议问题