Command-line Package Service Fabric Application

前端 未结 5 1338
Happy的楠姐
Happy的楠姐 2021-02-08 21:47

Our continuous delivery set-up, until recently, was delivering Service Fabric packages using the following command:

msbuild SFApp.sfproj /t:Package
5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-08 22:39

    We have had the exact same problem as you had and I have been looking around for a solution all over the web and did some experiments. Those are the steps that worked for us:

    1. Don't manually add a target anywhere as suggested by other answers on StackOverflow. Not necessary. Especially in a CI environment, you want to build the projects separately anyways.
    2. Prepare the projects in the Solution: Change the target platform for all projects to x64
    3. Build the application

    msbuild.exe SFAplication.xproj /p:Configuration=Release /target:rebuild

    1. Package the App

    msbuild.exe SFAplication.sfproj /p:Configuration=Release /target:Package

提交回复
热议问题