I am trying to setup a incremental source generator, and following a number of different tutorials/blogs. It was working then I changed something and it no longer works, even after reverting the changes.
[Generator]public class TestingGenerator : IIncrementalGenerator{ public void Initialize(IncrementalGeneratorInitializationContext context) { throw new Exception("Test Exception!"); }}
[Generator]public class TestingGenerator : IIncrementalGenerator{ public void Initialize(IncrementalGeneratorInitializationContext context) { throw new Exception("Test Exception!"); }}
I rebuild after every change using
dotnet build MyProject.sln --no-incremental
dotnet build MyProject.sln --no-incremental
.
I except to see a warning in the logs saying that the source gen .csproj will not be included but I don't.
Anything clear that I am doing wrong or how to debug?