I have Visual Studio 2019 Professional locally, Azure DevOps pipeline build agent has Enterprise.
How to reference the ReferenceAssemblies in the project file, that resolves both locally and in the build agent?
Projectfile: builds locally, but pipeline build fails because of wrong path:
<HintPath>$(ProgramFiles)\Microsoft Visual Studio\2019\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v9.0\Mono.Android.dll</HintPath>
Projectfile: builds in azure devops pipeline, but local build fails because of wrong path:
<HintPath>$(ProgramFiles)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v9.0\Mono.Android.dll</HintPath>
Projectfile: builds locally, but pipeline build fails, because $DevEnvDir is Undefined:
<HintPath>$(DevEnvDir)\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v9.0\Mono.Android.dll</HintPath>
I feel like I'm missing something simple here...