Coding Shorts: Building a Source Generator - Part 1
Shawn Wildermuth Shawn Wildermuth
15K subscribers
8,156 views
0

 Published On Mar 6, 2023

Part 2 is now live:    • Coding Shorts: Building a Source Gene...  

My new live, online courses are coming in April and May:

ASP.NET Core: Building Sites and APIs
April 11-13th, 2023
https://shawnl.ink/aspnetcore-live

Building Apps with Vue, Vite and TypeScript
May 9-11th, 2023
https://shawnl.ink/vue-live

--------------------------------------------------------

I needed to build a Source Generator for my MinimalApiDiscovery project. Let's dig into how they're built! Let's look at it:

00:00 - Introduction
01:12 - Getting Started
02:32 - Creating the Generator Class
04:36 - The Syntax Provider
08:30 - The Compilation Provider
09:22 - Registering an Output Source
10:22 - Creating the Source Code
12:47 - Creating a Test Project
13:38 - Referencing the Generator
14:46 - Seeing the Generated Code
16:13 - Wrapping Up

Source Code: https://github.com/shawnwildermuth/co...

If you like this video, you might like other videos in my Instructional Videos:
-    • Instructional Videos  

You can hire me too! You can reach me at my new website:
- https://shawn.wildermuth.com

show more

Share/Embed