Step by step guide on how to debug a C# SourceGenerator in Visual Studio 2022
โญ Canonical โ this is the single source of truth for this project.
| Field | Value |
|---|---|
| Name | dotnet-how-to-debug-source-generator-vs2022 |
| Tier | ๐ Learning & Experiments |
| Description | Step by step guide on how to debug a C# SourceGenerator in Visual Studio 2022 |
| Visibility | ๐ Private |
| Fork | No |
| Last activity | ย |
| Status | โ Archived |
| Original source | Github |
| Original owner | guneysus |
| Language | Markdown |
| Type | Miscellaneous |
| Size | Small |
| Idea | Step-by-step guide and demo for debugging C# source generators in VS2022 |
| Idea score | 55 |
| Impl score | 60 |
| Rating | 57 |
Step by step guide on how to debug a C SourceGenerator in Visual Studio 2022
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Nullable>enable</Nullable>
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<CompilerGeneratedFilesOutputPath>Generated</CompilerGeneratedFilesOutputPath>
<IsRoslynComponent>true</IsRoslynComponent>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.1.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.3" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
</ItemGroup>
</Project>
repos/github.com/guneysus/dotnet-how-to-debug-source-generator-vs2022git@github.com:guneysus/archive.gitgit@gitlab.com:guneysu/archive.gitgitea@192.168.1.19:guneysu.dev/github-archive.git| โ dotnet-extension-methods | dotnet-html-gen โ |
Generated by scripts/generate.py ยท Back to index