Azure / azure-dev

A developer CLI that reduces the time it takes for you to get started on Azure. The Azure Developer CLI (azd) provides a set of developer-friendly commands that map to key stages in your workflow - code, build, deploy, monitor, repeat.
https://aka.ms/azd
MIT License
408 stars 198 forks source link

buildpacks: unable to build .NET projects with sibiling reference projects #3124

Open weikanglim opened 10 months ago

weikanglim commented 10 months ago

Repro:

  1. Have a project directory like: ./App/App.csproj that references ./lib/Library.csproj. Don't provide any Dockerfiles.
  2. Have azure.yaml (run azd init to bootstrap if needed) that looks like:
    services:
    app:
    project: ./App
    host: containerapp
    language: dotnet
  3. Run azd package / azd up

Expected: azd package/ azd up succeeds

Actual: Command fails with The referenced project '../lib/Library.csproj' does not exist. [/workspace/App.csproj]

weikanglim commented 10 months ago

Knowing docker limitations here, Oryx/azd support of #2632 could be an interesting avenue pursue.

Otherwise, we may need something like https://github.com/microsoft/Oryx/issues/2281