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>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…