Azure Pipelines BizTalk - Microsoft Hosted Build Agent

321 Views Asked by At

Repos: Git
Agent: Microsoft Hosted Agent

In Azure Pipeline I am using Visual Studio Build Task to Build BizTalk Solution. But facing below error.

I am using Microsoft Hosted Agent, is there any solution to resolve this except for using Self Hosted Agent?

Error MSB4226: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\BizTalk\BizTalkC.targets" was not found. Also, tried to find "Microsoft\BizTalk\BizTalkC.targets" in the fallback search path(s) for $(MSBuildExtensionsPath) - "C:\Program Files (x86)\MSBuild" . These search paths are defined in "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe.Config". Confirm that the path in the declaration is correct, and that the file exists on disk in one of the search paths.

1

There are 1 best solutions below

1
On BEST ANSWER

This is not possy with hosted agents, Biztalk build targets non installed on them. You have to install a self hosted agent on your Biztalk environment. Then you can use Build pipeline targeting your private agent