On .NET Live: Lessons Learned Building Source Generators

  Рет қаралды 4,521

dotnet

dotnet

Күн бұрын

Пікірлер: 7
@daniloa.1455
@daniloa.1455 8 ай бұрын
20:28 Target .NET Standard 2.0 22:37 Use IIncrementalGenerator 23:44 ForAttributeWithMetadataName() 27:37 Use Immutable, Read-Only Models ???? Code Generation 32:14 Naming Collisions 37:25 Avoid Package References 39:18 Be Nullable, but Be Forgiving 42:16 Reloading Sucks 46:47 Roslyn APIs can be "Surprising"
@NotInventedHereShow
@NotInventedHereShow 9 ай бұрын
Excellent walkthrough. A few suggestions: You don't need to restart VS to observe changes to a source generator in another project. A `dotnet build-server shutdown` at the command line resets the build-server cache and forces the generators to re-run from scratch. Wrt. to nullable, I typically wrap generated code in `#nullable annotation`/`#nullable restore`. Then I do not have to use the damn-it operator in the generated code.
@VOXindie
@VOXindie 9 ай бұрын
Start at 5:30
@StephenJWalter
@StephenJWalter 9 ай бұрын
Starts at about 3:56
@IgnatAndrei
@IgnatAndrei 9 ай бұрын
You can modify source code with Roslyn Code Generator that writes interceptors.
@JasonBock
@JasonBock 9 ай бұрын
....sort of. You can intercept method invocations, but you can't change method bodies. Also, AFAIK, interceptors are still an experimental feature, so I didn't want to get into that in the talk - I had to enough to cover as-is :)
@ilayarajag6064
@ilayarajag6064 9 ай бұрын
hi
.Net core - Easy to use Nuget manager with VS Code
2:51
allmnet의 Python 개발 채널
Рет қаралды 15 М.
Shortest Scientist vs Creationist debate ever.
0:31
PHILOSOPHY ALPHA MALE
Рет қаралды 8 МЛН
БАБУШКА ШАРИТ #shorts
0:16
Паша Осадчий
Рет қаралды 4,1 МЛН
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН
«Жат бауыр» телехикаясы І 26-бөлім
52:18
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 434 М.
Who is More Stupid? #tiktok #sigmagirl #funny
0:27
CRAZY GREAPA
Рет қаралды 10 МЛН
All About C# Source Generators | .NET Conf 2023
27:59
dotnet
Рет қаралды 29 М.
ASP.NET Community Standup: Smart Components
1:26:59
dotnet
Рет қаралды 11 М.
"All About C# Code Generators" with Shawn Wildermuth
44:41
Rust's Witchcraft
9:18
No Boilerplate
Рет қаралды 190 М.
C++ Super Optimization: 1000X Faster
15:33
Dave's Garage
Рет қаралды 332 М.
Swagger is Gone in .NET 9! Replace It With This.
9:34
Nick Chapsas
Рет қаралды 92 М.
C# Source Generators Tutorial
48:58
Raw Coding
Рет қаралды 27 М.
БАБУШКА ШАРИТ #shorts
0:16
Паша Осадчий
Рет қаралды 4,1 МЛН