We are configuring a build pipeline for BizTalk. When we run the pipeline the use NuGet task is getting successful and the next task i.e. NuGet restore is failing giving the below error:
##[error]The nuget command failed with exit code(1) and error(C:\agent_work\60\s.rptproj(22411): error MSB4226: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\BizTalk\BizTalk.targets" was not found. Also, tried to find "Microsoft\BizTalk\BizTalk.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\2019\Community\MSBuild\Current\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.