Difference between Chocolatey and NuGet

后端 未结 1 1365
借酒劲吻你
借酒劲吻你 2020-12-23 11:05

Is Chocolatey a higher version of NuGet or a different package manager? Where should I put my open source application? NuGet or Chocolatey?

1条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-23 11:35

    NuGet is designed to allow you to easily add code libraries to your project. Things like JSON.NET, Entity Framework, etc.

    Chocolatey is actually built on top of the NuGet package system, but it is designed to fill a different need. Chocolatey wraps up applications and other executables and makes it easy to install them on your computer. For example, tools like Git, Notepad++, etc. can be easily installed with a command like cinst git.

    https://chocolatey.org/packages has a list of all the applications that can be installed.

    If you have an open source project which is a library that is to be used in other developers' projects, then you should submit it to NuGet.

    If it is an application that users would normally install, then create a Chocolatey package that users can easily install and update from the command line.

    0 讨论(0)
提交回复
热议问题