create a deployment package for Service Fabric that includes all artifacts necessary to run the designed workflows at runtime

£可爱£侵袭症+ 提交于 2019-12-18 08:54:32

问题


How to create a deployment package for Service Fabric that includes all artifacts necessary to run the designed workflows at run-time?


回答1:


Another option is to package a service fabric application by building a solution in release mode (for example). This section can be added to the .sfproj file to achieve the goal:

<Target Name="ReleaseAfterBuild" AfterTargets="AfterBuild" Condition=" '$(Configuration)' == 'Release' ">
   <MSBuild Projects="$(ProjectPath)" Targets="Package" />
</Target> 



回答2:


To create a Service Fabric application package you need to run the "Package" target on the sfproj file.

msbuild app.sfproj /t:Package

This will create a "pkg" directory next to the sfproj file with all the necessary files.



来源:https://stackoverflow.com/questions/36543039/create-a-deployment-package-for-service-fabric-that-includes-all-artifacts-neces

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!