Skip to content

Commit

Permalink
Clarify the need for SG to target netstandard2.0 (#40644)
Browse files Browse the repository at this point in the history
* Clarify the need for SG to target `netstandard2.0`

* Update docs/csharp/roslyn-sdk/source-generators-overview.md

Co-authored-by: Jacob Marks <[email protected]>

---------

Co-authored-by: Jacob Marks <[email protected]>
  • Loading branch information
Youssef1313 and jacobjmarks authored Apr 29, 2024
1 parent 712d28c commit fa21a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/csharp/roslyn-sdk/source-generators-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ In this guide, you'll explore the creation of a source generator using the <xref
:::code language="xml" source="snippets/source-generators/SourceGenerator/SourceGenerator.csproj":::

> [!TIP]
> The source generator project needs to target the `netstandard2.0` TFM, otherwise it will not work.
> The source generator project should typically target the `netstandard2.0` TFM, as to support their consumption within .NET Framework environments including the Visual Studio IDE and MSBuild CLI.
1. Create a new C# file named _HelloSourceGenerator.cs_ that specifies your own Source Generator like so:

Expand Down

0 comments on commit fa21a4b

Please sign in to comment.