You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use a .proj file in the root (generated by dotnet-affected tooling) to build and publish the affected projects in my tree.
I'm now exploring the PublishContainer target for my CI pipeline. And it seems to be checking isPublishable and EnableSdkContainerSupport props in the said .proj file (in the root) which are false by default and then skips publishing the containers altogether without traversing the tree.
Publishing the projects inside the tree works just fine. Is it an intended behavior?
Thanks for looking into this!
--
MItya
The text was updated successfully, but these errors were encountered:
oats4goats
changed the title
PublishContainer doesnt'r traverse the project tree (Microsoft.Build.Traversal)
PublishContainer doesn't traverse the project tree (Microsoft.Build.Traversal)
Sep 4, 2024
Great! Interested in hearing what they think - in general if an action works for a solution we should be able to support it for a traversal project as well.
@jeffkl I'm guessing this is because the Traversal targets have explicit support for a key set of MSBuild targets that they forward along to ProjectReferences, and the PublishContainer target isn't one of those. That sound about right?
When building a solution, MSBuild generates a metaproj on-the-fly and any target not already declared it dynamically generates one for. I wonder if MSBuild should have a feature to do this for Traversal projects as well?
But it wouldn't be that hard to add the PublishContainer target to Traversal either. Someone just needs to do it.
Hey!
I use a .proj file in the root (generated by dotnet-affected tooling) to build and publish the affected projects in my tree.
I'm now exploring the PublishContainer target for my CI pipeline. And it seems to be checking isPublishable and EnableSdkContainerSupport props in the said .proj file (in the root) which are false by default and then skips publishing the containers altogether without traversing the tree.
Publishing the projects inside the tree works just fine. Is it an intended behavior?
Thanks for looking into this!
--
MItya
The text was updated successfully, but these errors were encountered: