发布NuGet包 [英] Publishing NuGet packages

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

问题描述

我对Visual Studio(包括2019)完全缺乏GUI支持感到惊讶,因为它将nuget包发布到某个feed。我已经阅读了Microsoft的许多文章(并提供了一些关于其中一些的反馈),这些文章似乎都使用命令行
nuget.exe命令进行发布步骤。

I'm astonished at the complete lack of GUI support in Visual Studio (including 2019) for publishing a nuget package to some feed. I've read many articles by Microsoft (and supplied feedback on some of these) which all seem to resort to using command line nuget.exe commands for the publish step.

我刚刚玩VS 2019和.Net标准库测试项目。在那里我可以定义包详细信息,我可以右键单击该项目并选择"打包"。生成包。

I was just playing with VS 2019 and a .Net Standard library test project. In there I can define package details and I can right-click the project and choose "Pack" to generate the package.

我们在Azure中为我们公司设置了一个包源,我们可以从那里提取包。但似乎我无法使用VS 2019 GUI发布到Azure。

We've setup a package source for our company in Azure and we can pull packages from there fine. But there seems to be no way I can use the VS 2019 GUI to publish to Azure.

(我知道我们的devops设置可以配置为在Azure中代码构建时自动发布包,但最初我们需要开发人员能够从他们的桌面发布。)

(I know our devops settings can be configured to publish the package automatically when code builds in Azure, but initially we need to the ability for developers to publish from their desktop).

如果我选择在项目上发布我得到一个选项 - 本地文件系统 - 没有支持添加我们的拥有Feed详细信息并发布到那里。

If I choose Publish on the project I get one option - the local file system - there's zero support for adding our own feed details and publishing to there.

为什么Microsoft在Visual Studio的这个领域多年来完全没有做任何事情?

Why has Microsoft done absolutely nothing for years and years in this area of Visual Studio?

如果我是错误,有方法,然后请在这里分享,我甚至找不到提供这个的扩展 - 一遍又一遍地将一个包发布到我们得到的一个订阅源"运行这些命令"但是哪里?命令
窗口应该在哪个文件夹中?我们必须将nuget.exe所在的文件夹添加到我们的环境变量中吗?

If I am wrong and there are ways then please share them here, I can't even find an extension that offers this - over and over when it comes to publishing a package to a feed we get told "run these commands" but where? what folder should the command window be in? must we add the folder where nuget.exe is to our environment variables?

整个区域一团糟!

推荐答案

Hi Kernel,

Hi Kernel,

很抱歉延迟回复。

我们可以使用发布工具将ASP.NET,ASP.NET Core,Python和Node.js部署到Azure服务。

We can use publish tool to deploy ASP.NET, ASP.NET Core, Python, and Node.js to Azure service.

请参考此处:   https://docs.microsoft。 com / zh-CN / visualstudio / deployment / deployment-applications-services-and-components?view = vs-2019

please refer to here: https://docs.microsoft.com/en-us/visualstudio/deployment/deploying-applications-services-and-components?view=vs-2019

对于nuget包,我们可以按照链接以下发布到天蓝色服务或其他目的地:

For the nuget package, we can follow the links below to publish to azure service or other destination:

请参阅此处: 

please refer to here: 

https://docs.microsoft.com/en-us/azure/devops/pipelines / ARTIF acts / nuget?view = azure-devops& tabs = designer#publish-packages

希望它可以帮到你。

Best问候,

Dylan


这篇关于发布NuGet包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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