What's the proper way to build source generator? - C#