Last post Sep 14, 2020 09:57 AM by JLarue
Sep 14, 2020 09:57 AM|JLarue|LINK
I have created a Domain Modeling Tool
that uses Roslyn to code generate backing services based upon the principles of
Domain Driven Design.
The tooling code-generates backing ASP.Net Core MicroServices
along with client side class libraries to interact with the generated gRPC or REST API as well as related Models, ViewModels, etc. are amongst the many other code-generated artifacts.
Next I would like to
code-generate some common Razor views to help further speed up app development.
5 years ago I worked with T4 template generation and it seems that might be one way to go to generate the blazor page / components but I am wondering if there is a more appropriate approach that I should take to code generate these blazor
Is T4 the way to go or should I look to Microsoft.VisualStudio.Web.CodeGeneration.Templating.RazorTemplateBase
and if so is there any guidance / examples on how to utilize either for generating Blazor/Razor custom views?