Trying to get my Application Fabric application on a build server. When I create the .sln file, the target of the sfproj package does not start. As expected. I can not get MSBuild to run this target.
First, the only targets available when creating against the .sln file are standard build and publish objects.
Secondly, the creation is against .sfproj itself. Sets the target. However, due to the $ (BuildPlatform) mismatch, the projects referenced by .sfproj are not building correctly .. sfproj has an x64 platform. Most of my other projects are any processor.
This is a lesser question about the service structure and most likely a general MSBuild question. I am looking for a solution that does not require me to combine all my platform options. The service fabric is REALLY x64 only, and my other projects are REALLY any processor.
[EDIT]
I solved it. What I did was add a new Target to the .sfproj file called MaybePublish , and I set it as one of the default targets. MaybePublish has Condition for '$(Package)' == 'true' . It has DependsOnTarget installed on Package . Basically, this target option can pack a Service Fabric application if the property is set when building the solution.
It seems to me that this is probably the way DeployOnBuild works in web publishing projects. Fabric service target files must have this type of support by default.
source share