C
C#15mo ago
Terria

✅ How to add a nuget dependencies on a Source generator project?

I basically want to import this dependencies called Newtonsoft.Json, but it seems like it can't be find the assembly elsewhere.. anyone knows how?
6 Replies
canton7
canton715mo ago
You have to bundle the dlls into your package... There's a discussion or something on it somewhere
canton7
canton715mo ago
GitHub
roslyn/source-generators.cookbook.md at main · dotnet/roslyn
The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs. - roslyn/source-generators.cookbook.md at main · dotnet/roslyn
Terria
Terria15mo ago
it quite an inconvenient, but I'll take it, thanks!
canton7
canton715mo ago
Yepyep, but most of SG authorship falls into that category Just be thankful it's possible...
Terria
Terria15mo ago
yeah..
Accord
Accord13mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity. Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts