Command-line Package Service Fabric Application

前端 未结 5 1339
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:23

    MSBuild only supports a small set of target names that can be specified at the solution level. As you've discovered, Package is not one of them. You'll need to execute two separate calls to MSBuild: one which builds the solution and one which calls the Package target on the sfproj. The Package target of an sfproj has a dependency on the Build target so it will ensure that the sfproj and its project dependencies are built.

提交回复
热议问题