Java .NET 世界有 Maven 替代品或端口吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/652583/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 17:25:40  来源:igfitidea点击:

Is there a Maven alternative or port for the .NET world?

java.netmaven-2build-processbuild

提问by Georg W?chter

Is there a Maven alternative or port for the .NET world?

.NET 世界有 Maven 替代品或端口吗?

I would love to use a good dependency management system that the Java world has, but I don't find anything comparable for .NET projects...

我很想使用 Java 世界拥有的一个良好的依赖管理系统,但我找不到任何可与 .NET 项目相媲美的东西......

采纳答案by Sean McMillan

NMavenhas been the first/official effort to provide Apache Mavenfor .NET; the project failed to clear the high bar of requirements for an official Apache project and was retired from the Apache Incubator in November 2008. There have been several efforts to fork and survive the project, but only one of them (NPanday) managed to do so and has been able to rejoin the Apache Incubator in August 2010. Sadly also the NPanday project was retired in January 2015 because it is lacking active committers.

NMaven是第一个/官方努力为 .NET提供Apache Maven;该项目未能通过官方 Apache 项目的高要求,并于 2008 年 11 月从 Apache Incubator 中退出。已经有几次努力使该项目分叉并幸存下来,但只有其中一个(NPanday)成功做到了并且能够在 2010 年 8 月重新加入 Apache 孵化器。遗憾的是,NPanday 项目也于 2015 年 1 月退休,因为它缺乏活跃的提交者。

回答by Matthew McCullough

Apache NMaven is a suite of plugins and integrationallowing .NET code to be a player in Maven build scripts.

Apache NMaven 是一套插件和集成,允许 .NET 代码在 Maven 构建脚本中发挥作用。

回答by Tim O'Brien

Byldanis a port of Maven, but it isn't a 100% analog to the tool. Shane Isbell has been working on this project for a while, you can read more about it here.

Byldan是 Maven 的一个端口,但它不是该工具的 100% 模拟。Shane Isbell 已经在这个项目上工作了一段时间,你可以在这里阅读更多关于它的信息

Even though the answer that references NMaven has some sort of green checkbox next to it, it is incorrect: there is nothing called Apache NMaven as the project never made it out of the ASF incubator. The trunk continues to live on as NMaven at Codeplex. NMaven is written in Java and Byldan is written in C#. Most people looking for something like Maven for the .NET platform are not going to want to deal with a tool writen in Java. Byldan, IMO, is the most appropriate tool as it is written in C#.

尽管引用 NMaven 的答案旁边有某种绿色复选框,但它是不正确的:没有任何东西称为 Apache NMaven,因为该项目从未脱离 ASF 孵化器。主干继续作为 Codeplex 的 NMaven 存在。NMaven 是用 Java 编写的,而 Byldan 是用 C# 编写的。大多数为 .NET 平台寻找 Maven 之类的东西的人不会想要处理用 Java 编写的工具。IMO 的 Byldan 是最合适的工具,因为它是用 C# 编写的。

回答by Chris T.

It seems that while all appear to be lacking NPandayis the most mature and actively developed Maven dependency management for .NET and if I had to bet on one it would be that one. The way I see it ideally any .NET solution would be mostly compatible with Maven like Byldanso it could use the same maven repositories such as Maven central.

似乎所有似乎都缺乏NPanday是最成熟和最积极开发的.NET Maven 依赖管理,如果我必须打赌它会是那个。我认为理想情况下,任何 .NET 解决方案都将与 Maven 兼容,例如Byldan,因此它可以使用相同的 Maven 存储库,例如 Maven central。

My problem with Byldan which initially looked more promising than NPanday is that it hasn't been actively developed since 2008, NPanday has a release as of Sep 8th, version 1.2.1 to Byldan's version 0.6 from 2008.

我对 Byldan 的问题最初看起来比 NPanday 更有希望,因为它自 2008 年以来一直没有得到积极开发,NPanday 从 2008 年 9 月 8 日起发布了 1.2.1 版到 Byldan 的 0.6 版。

Update:

更新:

It seems that NuGet does indeed perform some of the Maven type functions in the .NET world. It also appears that Microsoft is implicitly endorsing NuGet if not explicitly doing so. In full disclosure I don't have experience using NuGet but based on the November 2011 MSDN Magazine article hereit looks very promising. NuGet also has full Visual Studio 2010 integration and supports Windows Phone, Silverlight and Windows Presentation Foundation.

看起来 NuGet 确实在 .NET 世界中执行了一些 Maven 类型的功能。如果没有明确这样做,Microsoft 似乎也暗中支持 NuGet。完全公开我没有使用 NuGet 的经验,但基于 2011 年 11 月的 MSDN 杂志文章它看起来非常有前途。NuGet 还具有完整的 Visual Studio 2010 集成,并支持 Windows Phone、Silverlight 和 Windows Presentation Foundation。

回答by Andrei R?nea

NuGet(formerly called NuPack) addresses some of the features of Maven. You can read about it at Phil Haack, Scott Hanselmanand, of course, Scott Guthrie.

NuGet(以前称为 NuPack)解决了 Maven 的一些功能。您可以在Phil HaackScott Hanselman,当然还有Scott Guthrie 上阅读它。

回答by 8DH

David Ebbo has done some additional work with NuGet. See his blogpost Using NuGet without committing packages for further details.

David Ebbo 对NuGet做了一些额外的工作。有关更多详细信息,请参阅他的博客文章Using NuGet without committing packages

回答by Ivan G.

There's also a project called Refix. Thoughts?

还有一个名为Refix的项目。想法?

回答by Ivan G.

Another one on CodePlexis Crude.

CodePlex上的另一个是Crude

回答by Michel

Navenseems to be a recent initiative for a declarative approach to the .NET build process.

Naven似乎是最近的一项针对 .NET 构建过程的声明式方法的倡议。

Coming from a Java background, this is for me one of the most lacking part of the .NET ecosystem.

来自 Java 背景,这对我来说是 .NET 生态系统中最缺乏的部分之一。

回答by papanito

Gradlemay be a possible alternative. It currently does not support C# natively - only Java and C++. However there are plugins for .Net - well at least one which seems still somehow active. Well latter is technically a wrapper and you still need to install the dot-net tooling.

Gradle可能是一个可能的选择。它目前本身不支持 C# - 仅支持 Java 和 C++。然而,有一些 .Net 插件——至少有一个似乎仍然处于活动状态。那么后者在技术上是一个包装器,您仍然需要安装 dot-net 工具。