How to Use NuGet Packages in Source Generators

preview_player
Показать описание
Learn two slightly different approaches to using NuGet Packages as part of the C# Source Generators you’re building. You may want to do this to parse a configuration file from a YAML based format. Now, you could either write the YAML parser yourself, or like most others, I would prefer to use a pre-built and tested NuGet package.

😁 Connect With Me 😁
________________________________

📖 Chapters 📖
__________________

0:00 - How to Use NuGet Packages in Source Generators
0:25 - Source Generators C# Project Overview
0:43 - Manually adding Source Generator NuGet Package
2:35 - How to use when packaged
4:30 - Automatically adding Source Generator NuGet Package

#CodeWithStu #NuGet #dotnet
Рекомендации по теме
Комментарии
Автор

This is great! Very thorough and well explained! Thank you for helping me not just get over this road block but comprehend it also!

tacccobell
Автор

I have been stuck on this banging my head for like 6 hours now, way to much time. First I was trying to debug using Rider, and RIder gave me no details, because Rider is great, but its not Visual Studio.

I searched and searched and then found your video. You are AMAZING!! Solved my issue immediately and your presentation was excellent, video quality and the way you explained thins so good. I subscribed and am eager to explore your channel!

Thank you!

goolom
Автор

Source generators are a real pain. Thank you for the video!

Naster
Автор

Should that work for IIncrementalGenerator as well? Because it does not. I'm trying to include CSharpier

siezxdf