I am using VS 2019 Professional for development. My solution has an SSAS tabular project in it. When building in VS2019P there are neither warnings nor errors. When I run my build pipeline in Azure DevOps the Visual Studio build task fails on this error.
Error MSB4226: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Business Intelligence Semantic Model\1.0\Microsoft.AnalysisServices.VSHostBuilder.targets" was not found. Also, tried to find "Business Intelligence Semantic Model\1.0\Microsoft.AnalysisServices.VSHostBuilder.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\Enterprise\MSBuild\Current\Bin\amd64\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.
My Agent is:
- Windows 2019.
- Microsoft Hosted.
My pipeline consists of:
- Use NuGet 5.4.
- NuGet Restore.
- Visual Studio Build (using visual studio 2019)
I noticed when going through the verbose log that the build paths seem to be referencing Enterprise edition. However all other projects build.