Skip to content

Microsoft.Build.Traversal SDK doesn't traverse the project tree with PublishContainer target #565

@oats4goats

Description

@oats4goats

Hey!

I'm now exploring the PublishContainer target for my CI pipeline (sdk-container-builds). I have a tree of projects and I can build the containers by running dotnet cli from inside the leafs without use of traversal sdk.

However when I use a .proj file in the root of my tree (generated by dotnet-affected tooling) to build and publish all the affected projects in my tree, the job doesn't even start.

It seems to be checking Publishable and EnableSdkContainerSupport props in the said .proj file, which are false by default, and then skips publishing the containers altogether without traversing the tree and reaching the leafs with the properly configured props in .csproj files.

Is it an intended behavior?

Thanks for looking into this!

--
Mitya

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions