I have 2 projects, IE: projX.csproj and projY.csproj.
My src generator is referenced by projX, but the code generated is based on classes on projY.
When projY classes change, the generated files should change (and they do), but because no change occurs on projX, the changes are not picked up and no build occurs on projX. Routes that I'm considering but can't find an answer for:
Thank you.
The best workaround I found for this particular scenario is to add:
<ItemGroup>
<Compile Include="../YourProjectName/*/*.cs"/>
</ItemGroup>
What's passed in the include depends on the case, but best to be as specific as possible. That will add the syntax tree to the compilation as well.