Azure Pipelines BizTalk - Microsoft 托管生成代理

Azure Pipelines BizTalk - Microsoft Hosted Build Agent

回购:Git
代理:Microsoft 托管代理

在 Azure Pipeline 中,我使用 Visual Studio 构建任务来构建 BizTalk 解决方案。但面临以下错误。

我正在使用 Microsoft Hosted Agent,除了使用 Self Hosted Agent 之外,还有其他解决方案可以解决这个问题吗?

Error MSB4226: The imported project "C:\Program Files (x86)\Microsoft Visual Studio17\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 Studio17\Enterprise\MSBuild.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.

这不适用于托管代理,Biztalk 构建目标未安装在它们上。您必须在 Biztalk 环境中安装自托管代理。然后您可以使用针对您的私人代理的构建管道