Hi,
I am working on a source generator now.
Is there a way to get NCrunch to work on this one please ?
https://github.com/dotne...CSharp/SourceGenerators
I made a copy of these projects, upgraded to dotnet5 and made that work.
Then I added a source generator to the project SourceGeneratorSamples.
I added a unit test project (xunit) to test my new source generator.
In my test project, I will create a GenerationContext via invoking the internal constructor etc.
So I could create a ISourceGenerator and test it. There's no problem in that. NCrunch runs those without issue.
So these tests run, but the generated project (the one that uses the generated code - in the url, that would be the GeneratedDemo) does not compile with ncrunch.
If I wanted to write a test for classes in this GeneratedDemo project, I would not be able to execute them with ncrunch. (and that will be my next focus, I guess, like in a week or two)
Thx,
Dirk