JIT debugger not working when using source generation

249 Views Asked by At

This is my first attempt at creating a question so bear with me.

I'm attempting to implement a source generator into my solution. I was able to get the project to compile and work at a debugging state (while going through some erros) but the source generator in the end never generated the files. Please see below:

I would get these errors when attaching the debugger:

Error 1

Error 2

Error 3

If I didn't attach to the debugger then the popup doesn't show up, however it doesn't generate the files.

And when debugging and letting the process finish:

Results

Here is my code for the project to see if maybe I did something wrong setting it up.

Project reference

Gen Project file

I've tried:

  • Repairing visual studio
  • Repairing (reinstalling) .net sdk (.net 472, 48, Core 3.1, and 5.0)
  • Reinstalling the dotnet folder in program files
  • Running the same project in Jetbrains Rider (The error on there said "An unhandled exception occured in [21596] dotnet.exe" with a similar "Available debuggers" popup window)
0

There are 0 best solutions below