How to create a deployment package for Service Fabric that includes all artifacts necessary to run the designed workflows at run-time?
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.
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>