I am building a .net solution using the Azure Devops 2019 pipeline. The solution I am building is referencing projects in another directory. These projects are located in the source control however during the build I get the following error:
> ##[error]C:\a\_work\9\s\UI\UIProject\UIProject.sln.metaproj(0,0):
> Error MSB3202: The project file
> "C:\a\_work\9\s\Te\..\..\BusinessLogic\MyBLLProject\MyBLLProject.csproj"
> was not found
If I look at the Build server drive the BusinessLogic folder is missing even though the files are located in the source control.
Shouldn´t the build server take care of referenced projects and build them as well?
If you are trying to build/restore a simple project, the restore task will not handle the referenced project.
If you are trying to build/restore solution level .sln, the restore task will handle both projects.
However, according to your error info.
"C:\a_work\9\s\Te....\BusinessLogic\MyBLLProject\MyBLLProject.csproj" was not found
It's a project not found, not some dlls not found, the issue should not related nuget side.
Just as comment suggest, you should double check your workspace mapping relationship. Make sure the get source steps will also download the referenced projects.