Coding Shorts: Building a Source Generator - Part 1

  Рет қаралды 8,785

Shawn Wildermuth

Shawn Wildermuth

Күн бұрын

Part 2 is now live: • Coding Shorts: Buildin...
My new live, online courses are coming in April and May:
ASP.NET Core: Building Sites and APIs
April 11-13th, 2023
shawnl.ink/aspnetcore-live
Building Apps with Vue, Vite and TypeScript
May 9-11th, 2023
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: 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:
- shawn.wildermuth.com

Пікірлер: 32
Coding Shorts: Can You Use VSCode for Full-Time ASP.NET Core Dev?
21:21
Coding Shorts: .NET Aspire - Databases
10:52
Shawn Wildermuth
Рет қаралды 3,3 М.
A clash of kindness and indifference #shorts
00:17
Fabiosa Best Lifehacks
Рет қаралды 70 МЛН
Вечный ДВИГАТЕЛЬ!⚙️ #shorts
00:27
Гараж 54
Рет қаралды 14 МЛН
Was ist im Eis versteckt? 🧊 Coole Winter-Gadgets von Amazon
00:37
SMOL German
Рет қаралды 39 МЛН
Хотите поиграть в такую?😄
00:16
МЯТНАЯ ФАНТА
Рет қаралды 2,2 МЛН
Coding Shorts: Methods, Funcs & Actions...Oh, My!
11:02
Shawn Wildermuth
Рет қаралды 2,2 М.
Coding Shorts: Making Sense of Stack vs. Heap
5:33
Shawn Wildermuth
Рет қаралды 1,6 М.
Роман Щербаков «C# 9.0 Source Generators»
24:31
Сергей Васильев - Анализ C# кода на Roslyn: от теории к практике
59:40
DotNext — конференция для .NET‑разработчиков
Рет қаралды 1,5 М.
The History of GUI
4:38
TeamJapanese101
Рет қаралды 60 М.
8 await async mistakes that you SHOULD avoid in .NET
21:13
Nick Chapsas
Рет қаралды 310 М.
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 25 МЛН
АЙФОН 20 С ФУНКЦИЕЙ ВИДЕНИЯ ОГНЯ
0:59
КиноХост
Рет қаралды 508 М.
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 53 МЛН
⚡️Супер БЫСТРАЯ Зарядка | Проверка
1:00
Как правильно выключать звук на телефоне?
0:17
Люди.Идеи, общественная организация
Рет қаралды 1,3 МЛН