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

后端 未结 2 1360
天涯浪人
天涯浪人 2020-12-21 03:40

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

相关标签:
2条回答
  • 2020-12-21 04:35

    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.

    0 讨论(0)
  • 2020-12-21 04:44

    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> 
    
    0 讨论(0)
提交回复
热议问题