gpt4 book ai didi

c# - 无需 TFS 或 VSTS 自动部署 Service Fabric 项目

转载 作者:行者123 更新时间:2023-11-30 15:20:30 25 4
gpt4 key购买 nike

我知道你可以publish a Service Fabric application使用 Visual Studio 用 C# 编写,我已阅读 using TFS or VSTS 上的这篇文章设置 Service Fabric 应用程序的持续集成 DevOps 版本。

如何使用 PowerShell 手动完成这一切?我知道我可以使用 this article on deployment 中的 PowerShell 执行以下操作:

  • 使用 Visual Studio 打包项目。
  • 将包传输到远程服务器。
  • 当我在远程服务器的上下文中时,使用本文中的 PowerShell 脚本示例来部署软件包。

相反,我似乎无法弄清楚这两个位可以帮助我从 PowerShell 执行此操作:

  • 使用 PowerShell,如何像在 Visual Studio 上下文中一样打包我的 Service Fabric 项目?
  • 使用 PowerShell,如何像在 Visual Studio 环境中一样远程部署 Service Fabric 项目?

最佳答案

要通过命令行生成包,您可以调用 sfproj 文件上的“Package”目标。

请参阅我在 create a deployment package for Service Fabric that includes all artifacts necessary to run the designed workflows at runtime 上的回答

然后按照 https://azure.microsoft.com/en-us/documentation/articles/service-fabric-deploy-remove-applications/ 中的说明进行操作正如 blackSphere 建议的那样。

关于c# - 无需 TFS 或 VSTS 自动部署 Service Fabric 项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40051558/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com