tkarlsen;15162 wrote:
I'm having a similar problem with source generators, not sure if it is related. In my case I'm not generating test methods, I'm generating regular code in the projects that are being tested. For some reason the build fails when running in NCrunch, because the generated code can't be found in my regular (non-test) projects. I assume this should be a supported scenario?
Again, it's impossible for us to warrant which source generators NCrunch supports and which it doesn't, as there are too many options available and there are many ways of using them. I would suggest making sure you are familiar with the constraints described in the
documentation and examining how the system works to see whether you can handle it with the various NCrunch configuration options available.
I realise it's not particularly helpful to be given a support response that simply pushes back the problem, but please consider the following:
* We can't say that we can't handle source generation, because many generators do work just fine with NCrunch and some don't even require special configuration
* We can't say we officially support all source generators, because there are so many options available in this area that we can't even test for all possible scenarios, much less work around the compatibility issues that exist with them all
* We can't provide targeted support for every person that has a problem with a source generator, because we'd open ourselves up to limitless amounts of support work investigating niche scenarios, most of which would overwhelming result in no change to the NCrunch codebase and would only help one person at a time. We just don't have the resources to work that way.
* We CAN investigate issues that affect a large number of people using a very widely used toolset. However, in my experience I have yet to encounter a source generation issue that qualifies for this. These tend to be very niche issues. If your source generator is doing something specific that you feel NCrunch should be able to handle, I recommend making a
feature request for NCrunch to improve its handling in this area and we will investigate it if enough users vote for the issue.