JoanComasFdz / dotnet-how-to-debug-source-generator-vs2022

Step by step guide on how to debug a C# SourceGenerator in Visual Studio 2022
96 stars 9 forks source link

Instructions not working for Visual Studio 17.7.4 #4

Open LilithSilver opened 11 months ago

LilithSilver commented 11 months ago

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?

limeniye commented 6 months ago

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