yusuf;15614 wrote:I use Visual Studio 2019 16.11.0. I have tried again with a fresh clone of the repository and Visual Studio built it on first try without any errors.
Thanks for this info. I can confirm that this is something new they pushed out with 16.11. After updating the IDE I can now build the sample project, which hopefully means we can find a way to get NCrunch to handle it. I'll let you know when a fix is available.
yusuf;15614 wrote:
I know the dependencies of source generators (especially the transient ones) are a pain in the neck at the moment, but it would be great if you can solve this. JSON parsing has a lot of use cases in source generators and it is impossible to do it without a dependency right now.
I hope they improve this setup. Right now it feels like a gruesome hack. I agree there isn't much you can write in these generators without being able to specify dependencies. The toolset in this area seems very immature, I expect further problems like this in the near future.