Nuget update does not work propelry

I want the updateNuget packages used in the solution file, and currently I use the following command to update Nuget packages.

NuGet restore <projectPath> [options]

Link: https://docs.microsoft.com/en-us/nuget/tools/nuget-exe-cli-reference#restore

If a solution file, package.config or project.json is not found, NuGet displays an error message.

Link: https://docs.microsoft.com/en-us/nuget/tools/nuget-exe-cli-reference#remarks

But the problem is what I use packages.ProjectName.Configinstead of the file packages.config. So the NuGet update is not working properly.

Note. Similarly, if a folder contains several project files and solutions , the NuGet update does not work.

Please suggest how to overcome this problem?

Edit: Initially, I thought using packages. [Projectname] .config in my source is the reason for recovering NuGet packages, but later I discovered that NuGet packages are not even restored properly using the package.config files.

I have more than a solution and a project file in my source. After deleting other projects, NuGet recovery works correctly in my source.

Are there several solution files why Nuget is not updating? Anyone ran into problems. Any help to solve this problem would be helpful.

+4
source share
2 answers

Nuget Visual Studio, packages.config project.json.

. remarks .

+5

, , NuGet 2.8. - , .

NuGet,

pack.config . NuGet , . NuGet 2.8 , packages.config , .

ReactiveUI packages.config files

, ReactiveUI , ;

ReactiveUI Github

+1

Source: https://habr.com/ru/post/1672901/


All Articles