Is it possible to allow remote projectreference from git repo? #6132
Open
Description
In addition to building project and publish into package, sometimes it was more convenient to let the project reference another project directly and compile it along with the main project
But current method of projectreference require project to present in machine and reference it only locally. Which is inconvenient and require setup on each machine
So I think msbuild should allow referencing git repo in csproj. Internally you could pull git project into temp folder and do the same process as projectreference. But it should be standardize and allow us to build project with CI/CD by projectreference
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<ProjectReference
Include="src/Blazor.Extensions.Canvas/Blazor.Extensions.Canvas.csproj"
Repo="https://github.com/BlazorExtensions/Canvas.git" <!-- the source repo -->
Commit="3d9b5e6eccb0a66d34172f07ceeb8b7f4d82aaec" <!-- commit ID for versioning -->
/>
</ItemGroup>
</Project>
Is it possible?