AArnott / CodeGeneration.Roslyn

Assists in performing Roslyn-based code generation during a build.
Microsoft Public License
408 stars 59 forks source link

Reasoning behind spanning CodeGeneration through the Engine assembly #131

Closed mwpowellhtx closed 5 years ago

mwpowellhtx commented 5 years ago

Hello,

It appears as though TransformationContext is really key to driving the whole code generation process. However, what I do not understand is why instantiation occurs in the Engine assembly and not in the CodeGeneration.Roslyn?

Thank you, cheers.

amis92 commented 5 years ago

CodeGeneration.Roslyn is supposed to only contain an API interface required for implementation of generators.

Engine package is used by the Tool (dotnet-codegen) and contains an implementation of the process.

mwpowellhtx commented 5 years ago

Thank you for that. Appreciated.