Command-line Package Service Fabric Application

前端 未结 5 1351
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条回答
  •  旧时难觅i
    2021-02-08 22:34

    I had the same problem and fixed it by changing the Platform in the failing projects to explicitly build for x64.

    Click Build > Configuration Manager and make sure that the assemblies are compiled for the x64 platform, that should also set the Output Paths in the corresponding .csproj files.

    The actual command line action that is being executed is this:

    "C:\Program Files (x86)\MSBuild\14.0\bin\amd64\msbuild.exe" "C:\agent\_work\1\s\Project\SFProject.sfproj" /t:Package /p:platform="x64" /p:configuration="release" /p:VisualStudioVersion="14.0"

提交回复
热议问题