[英]How to publish a package from Visual Studio to azure artifacts
I am looking for a way to publish a package from visual studio to azure artifact's feed.我正在寻找一种方法来将 package 从 visual studio 发布到 azure 工件的提要。 I am able to do that using cli and azure pipeline, but now I am looking for a way to do that from visual studio 2022.
我可以使用 cli 和 azure 管道来做到这一点,但现在我正在寻找一种从 visual studio 2022 中做到这一点的方法。
Kind Regards亲切的问候
How to publish a package from Visual Studio to azure artifacts
如何将 package 从 Visual Studio 发布到 azure 工件
I am afraid there is no out of box way publish a package from Visual Studio to azure artifact feed.恐怕没有开箱即用的方式将 package 从 Visual Studio 发布到 azure 工件提要。
We have to do this via cli and azure pipeline.我们必须通过 cli 和 azure 管道来做到这一点。
If you still want to do this by Visual Studio, you could add a MSBuild customer task in the project file to invoke the cli to publish packge:如果您仍想通过 Visual Studio 执行此操作,则可以在项目文件中添加一个 MSBuild 客户任务来调用 cli 来发布 packge:
<Target Name="PublishMyPackage" AfterTargets="Build">
<Exec Command="<give your command here>" />
</Target>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.