vezel-dev / zig-sdk

An MSBuild SDK for building Zig, C, and C++ projects using the Zig compiler.

Home Page:https://docs.vezel.dev/zig-sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`_FanOutBuild` should depend on `BeforeBuild` and `AfterBuild`

alexrp opened this issue · comments

It's fairly surprising that making a target run before/after these extension points makes it not trigger at all for the top-level build. #68 should be addressed together with this so that such an extension target knows whether it's running in the top-level build.

The current behavior actually matches what MSBuild and the .NET SDK does when you set multiple TFMs; only the inner builds trigger BeforeBuild/AfterBuild. I'm not sure why I thought otherwise.

That said, it still seems useful to provide a hook for this use case.