As a nuget package the same as Fody
Optionally replace/add cs files to the build pipeline in a similar wat to GFV
https://github.com/Particular/GitFlowVersion/blob/master/GitFlowVersionTask/UpdateAssemblyInfo.cs#L25 https://github.com/Particular/GitFlowVersion/blob/master/GitFlowVersionTask/NugetAssets/GitFlowVersionTask.targets#L26
So at build time all the cs can be loaded into a roslyn model and passed to the addins for manipulation
Nuget packages with a naming convention the same as fody
Each addin gets access to roslyn model for the current project and can choose to manipulate it
Possible write new cs file to build temp in the same way that Costura does??
Ok, I've been looking at this a bit more.
It might be worth starting work on this now, even with the Roslyn bits lacking. Currently I can see 2 options.
Either way we'll still need a syntax rewriter, and that would be the complex bit anyway. So it would be worth starting work on a syntax rewriter and use 1 to test it until 2 comes out.