dotnet-how-to-debug-source-generator-vs2022 icon indicating copy to clipboard operation
dotnet-how-to-debug-source-generator-vs2022 copied to clipboard

Instructions not working for Visual Studio 17.7.4

Open LilithSilver opened this issue 1 year ago • 1 comments

I follow the instructions exactly, but I get stuck at step 8:

  1. In Target project select the Console Application project.

For my menu, it's entirely blank:

image

I have the .NET Platform Compiler SDK installed in the Visual Studio Installer, so that's not the issue, and I've tried plenty of variations of parameters, including the change in #3. No dice.

The hello world source generator from here is working just fine, so the reference is working.

Does anyone know how to get this working in 17.7.4?

LilithSilver avatar Oct 09 '23 06:10 LilithSilver

I've changed launchSettings.json in Properties folder as in following sample: https://github.com/martinothamar/Mediator/blob/e3f7660b42e2a9aea18d9ca21a6a720d48c34565/src/Mediator.SourceGenerator/Properties/launchSettings.json#L4

And now it works.

P.S. Also I've changed the netstandard 2.1 version to 2.0

limeniye avatar Feb 29 '24 16:02 limeniye