我知道你可以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”目标。
然后按照 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/