I have a solution that I'm moving to Azure Devops pipelines and am having trouble figuring out how to use a shared project. So here is the scenario. I have 3 projects Common.csproj, A.csproj and B.csproj. Common is used in both projects. A and B reference Common through a project reference in my solution.
<ItemGroup>
<ProjectReference Include="..\Common\Common.csproj">
<Project>{40838373-5284-4073-86e5-9bf4e1bfb855}</Project>
<Name>Common</Name>
</ProjectReference>
</ItemGroup>
I have moved the Common project to it's own git repo and have a build pipeline that publishes the build artifact dll at the end.
In my pipeline for project A I am trying to download that Common build artifact and reference it with msbuild, but haven't figured out how to do it yet. Is there a command line argument that will reference the assembly directly or am I thinking about this in the wrong way?