Chocolatey 和 NuGet 的区别 [英] Difference between Chocolatey and NuGet

查看:12
本文介绍了Chocolatey 和 NuGet 的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ChocolateyNuGet 还是其他包管理器?我应该把我的开源应用程序放在哪里?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、Entity Framework 等.

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 的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆