azure - Service fabric VSTS Continuous Integration using Hosted Agent -


i updated service fabric vsts continuous integration build process latest mentioned in link.

according updated document can use hosted agent build agent. build failing @ second step following error

the target "build" listed in aftertargets attribute @ "c:\program files (x86)\msbuild\microsoft\visualstudio\v14.0\service fabric tools\microsoft.visualstudio.azure.fabric.applicationproject.targets (112,11)" not exist in project, , ignored. sfproject\sfproject\sfproject.sfproj(0,0): error msb4057: target "build" not exist in project. project "c:\a\1\s\sfproject\sfproject.sln" (1) building "c:\a\1\s\sfproject\sfproject\sfproject.sfproj" (2) on node 1 (default targets). c:\a\1\s\sfproject\sfproject\sfproject.sfproj : error msb4057: target "build" not exist in project.

enter image description here

i tried answers found on stack overflow , no solution working.

from error message, looks .sfproj project file older version. opening .sfproj in text editor , checking projectversion property, can determine version. starting project version 1.1, version produced service fabric sdk 2.1, nuget packages introduced building project. nuget package provides support building project in hosted build agent. you'll need make sure you've installed service fabric sdk 2.1 or higher , upgrade .sfproj opening within vs before attempting build in vsts.


Comments