Open rcmosher opened 1 month ago
@rcmosher I ran into the same issue, you are simply missing the .NET Compiler Platform SDK. Just go to Tools > Get Tools and Features, select the Individual components tab and find it there.
Can confirm it works on version 17.11.4, and I am even targeting a class library, not a console application.
I'm trying to follow the instructions in Microsoft Visual Studio Professional 2022 Version 17.11.3 with .NET Compiler Platform SDK installed. There isn't a "Roslyn component" option available when creating a debug launch profile. Only "Executable" and "Project." Instructions may need some updating.
I have found adding
Debugger.Launch()
does work when building the project as a workaround.