moq/labs

Build: consider getting rid of inline tasks in the build

Closed this issue · 3 comments

They use very slow CodeDOM for code generation.

kzu commented

We could just switch to the built-in Roslyn one and it would be awesome automatically?

I’ve later discovered that the Roslyn one has its problems (It was not caching properly, so doing expensive work every time). So maybe write a task .dll by hand or just leave it alone if you’re happy with perf. Or let’s fix the Roslyn one and use it then :)

kzu commented

Switched to source generators 💪