project-system
project-system copied to clipboard
Unable to debug source generator: "The project doesn't know how to run the profile '<name>' with command 'DebugRoslynComponent'"
Visual Studio Version
2022.17.11.4 (Community edition)
Summary
As title.
Suspect that the work done in https://github.com/dotnet/roslyn-sdk/pull/896 for https://github.com/dotnet/roslyn-sdk/issues/850 has either been reverted or broken.
Steps to Reproduce
- Clone https://github.com/riok/mapperly
- Attempt to debug source generator in Visual Studio by following https://mapperly.riok.app/docs/contributing/debugging/#integration-tests
- Get error
Creating a new "Roslyn Component" launch profile is also not possible, as that option is missing from the "Launch Profiles" UI
Expected Behavior
Source generator debugging works
Actual Behavior
Source generator debugging does not work
User Impact
Can't debug source generators