Open thx1200 opened 7 years ago
I forgot to note, right click "rebuild project" does work. It's only "rebuild solution" not working.
It's sort of by design. It is triggered by a project build event from VS, so it would be super annoying if that project wasn't otherwise being built and we decided to rebuild the templates (effectively marking that project dirty and causing a rebuild of an unchanged project) -- it would slow down every build.
As for why "Rebuild Solution" in VS doesn't trigger a rebuild of all projects, ¯_(ツ)_/¯.
If you can find a way to catch a rebuild solution event and trigger that to run all the templates, I'd welcome a PR, but it's not something I have time to do myself at the moment.
Well my knowledge of VS add-in development is basically nil, so I won't be of any help there! I did find that I can multi-select all the projects in my solution and rebuild them all at once that way. Rebuilding solution isn't something I do a lot, but I would do it to specifically re-trigger all the TT files because sometimes I just need them all sync'ed up. If you know of any way to just "rebuild all tt files in the solution" without a project rebuild, that would work for me too. Thanks for the fast reply.
When an individual project changes, this compiles the tt files reliably. However, if I right-click "rebuild solution" tt files on projects with no changes are not rebuilt. Is this by design? I feel like forcing a rebuild should cause the tt files to be rebuilt too.