-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The code gen is worse than ever. #35
Comments
Use MS Build. Right now many and even more parse with Roslyn local definitions in cs and generate code. |
I have never thought of using MSBuild fore code gen, do you have a doc link for how it is done? |
https://github.com/dotnet/orleans/tree/master/src/Orleans.CodeGenerator.MSBuild How does it work?
Also XUnit has some kind of task. This way you may I hope web search will reveal some tutorials of doing so. My case. Sometimes I want units with custom validations, e.g. from -100 to 100, or from 1 to 100, or from 0 to 100, or from 0 to 1024. So I may quantize them and store-wire them in most efficient manner and same time have typed logic in my code. And same time use generator to generate all fancy stuff. I want limited sizes, percentages, fractions, limited speeds, etc. |
There are various attempts to do codegen (run csx files on prebuild as part of task, t4, customization of roslyn with forks and proposals, writing new F# language:) ). But I guess custom MSBuild task is most production ready (with know path to nuget it, good versatile integration into build system), with DSL to describe units in Csharp and errors in build if wrong DSL usage. |
Maybe use less T4 and write a script.
The text was updated successfully, but these errors were encountered: