问题描述
Chocolatey 是 NuGet 或其他包管理器?我应该把我的开源应用程序放在哪里?NuGet 还是 Chocolatey?
Is Chocolatey a higher version of NuGet or a different package manager? Where should I put my open source application? NuGet or Chocolatey?
推荐答案
NuGet 旨在让您可以轻松地将代码库添加到您的项目中.JSON.NET、实体框架等.
NuGet is designed to allow you to easily add code libraries to your project. Things like JSON.NET, Entity Framework, etc.
Chocolatey 实际上构建在 NuGet 包系统之上,但它旨在满足不同的需求.Chocolatey 包装了应用程序和其他可执行文件,并可以轻松地将它们安装到您的计算机上.例如,Git、Notepad++ 等工具可以通过cinst git
之类的命令轻松安装.
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 列出了所有可以安装的应用程序.
https://chocolatey.org/packages has a list of all the applications that can be installed.
如果您有一个开源项目,该项目是要在其他开发人员的项目中使用的库,那么您应该将其提交给 NuGet.
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.
如果它是用户通常会安装的应用程序,那么创建一个 Chocolatey 包,用户可以轻松地从命令行安装和更新.
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.
这篇关于Chocolatey 和 NuGet 之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!