C
C#2y ago
Teuria

✅ 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
canton72y ago
You have to bundle the dlls into your package... There's a discussion or something on it somewhere
canton7
canton72y 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
Teuria
TeuriaOP2y ago
it quite an inconvenient, but I'll take it, thanks!
canton7
canton72y ago
Yepyep, but most of SG authorship falls into that category Just be thankful it's possible...
Teuria
TeuriaOP2y ago
yeah..
Accord
Accord2y 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