Should .nuget folder be added to version control?

后端 未结 7 1889
臣服心动
臣服心动 2020-12-12 16:06

With newer versions of NuGet it is possible to configure a project to automatically restore NuGet packages so that the packages folder doesn\'t need to be inclu

7条回答
  •  眼角桃花
    2020-12-12 16:40

    Now that nuget supports package restoration we're looking at it more closely.

    We use Subversion for source control, and my initial thoughts are that .nuget should be added to our repository, but added using svn:externals so that it points to a single location.

    That way we can automatically push out new versions to all developers and projects. For projects on release branches, rather than HEAD, we can specify the revision of svn:externals reference if we want to leave nuget alone.

    We have a lot of projects, so it also means not duplicating nuget.exe multiple times in the repo.

提交回复
热议问题