NET应用程序的Nexus和上载工件 [英] Nexus and uploading artifacts for .NET Applications

查看:73
本文介绍了NET应用程序的Nexus和上载工件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Nexus是否可以用作.NET应用程序生成输出的工件管理器?

Is there anyway that Nexus can be used as the artifact manager for the build output of a .NET application?

我非常了解Nexus可以成为出色的Nuget代理和内部工件管理器,但是我需要Nexus在这些库的下游进行更多操作,并存储TeamCity构建的输出.

I very much understand Nexus can an excellent nuget proxy and internal artifact manager, however I need Nexus to operate a bit more downstream from those libaries and store the output of a TeamCity build.

我已经研究过使用REST API上传zip文件(比如说MVC网站),但这看起来并不太可持续.有什么想法吗?

I have looked into using the REST API to upload a zip file (of say an MVC website) but that doesn't look super sustainable. Any thoughts out there?

推荐答案

Nexus支持托管的NuGet存储库,这些存储库可以是内部编写的nuget软件包的部署目标.因此,您可以运行一个内部的Nuget存储库.查看有关Nexus上的NuGet的文档,以获取有关如何进行部署的更多详细信息.

Nexus supports hosted NuGet repositories that can be the deployment target of your nuget package you author internally. So you can sort of run an internal Nuget repo. Check out the documentation for NuGet with Nexus for more details on how to do the deployment.

http://books.sonatype.com/nexus-book/reference/nuget.html

部署软件包必须针对托管的存储库并使用身份验证.有关详细信息,请访问 http://books.sonatype.com/nexus- book/reference/nuget-deploying_packages_to_nuget_hosted_repositories.html

Deploying a package would have to target a hosted repository and use authentication. Details can be found at http://books.sonatype.com/nexus-book/reference/nuget-deploying_packages_to_nuget_hosted_repositories.html

如果您不想使用nuget存储库来存储构建输出,也可以例如将zip文件上传到同一服务器上的Maven存储库.

And if you do not want to use a nuget repository to store the build output, you could also e.g. upload a zip file to a Maven repository on the same server.

一旦您的构建输出位于Nexus(Maven或nuget)中的存储库中,您可以使用例如带有curl的普通HTTP GET调用或您想要将安装zip等下载到部署服务器上的任何其他内容,然后将其安装在部署服务器上.

Once your build output is in a repository in Nexus (Maven or nuget) you can use e.g. plain HTTP GET calls with curl or anything else you want to download the install zip or so onto the deployment server and then install it there.

这篇关于NET应用程序的Nexus和上载工件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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