Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
oats4goats opened this issue Sep 4, 2024 · 0 comments

Comments

@oats4goats
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant