其他分享
首页 > 其他分享> > 无需TFS或VSTS自动部署Service Fabric项目

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

作者:互联网

我知道您可以使用Visual Studio用C#编写publish a Service Fabric application,并且我已经阅读了关于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上查看我的答案

然后按照blackSphere的建议遵循https://azure.microsoft.com/en-us/documentation/articles/service-fabric-deploy-remove-applications/中的说明.

标签:azure,powershell,azure-service-fabric,c,net
来源: https://codeday.me/bug/20191026/1937785.html