NetGenerator5

.NET 5 source generator tutorial. Shows a solution to some of the problems I faced while using source generator:

  1. Ability to generate js / vue / jsx files based on C# models and controllers
  2. Project structure - more than one assembly
  3. Access to the main project directory
  4. Access to the settings file
  5. Using third party libraries inside the generator, for example Newtonsoft.Json
  6. Using my custom assemblies inside the generator
  7. Access to classes / types of controllers and models located in different assemblies
  8. Debugging

Article (RU) https://habr.com/ru/post/542300/