Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 26 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# RSCG - 259 Examples of Roslyn Source Code Generators / 16 created by Microsoft /
# RSCG - 260 Examples of Roslyn Source Code Generators / 16 created by Microsoft /

The RSCG_Examples repository is a comprehensive documentation system that automatically processes and showcases 259 Roslyn Source Code Generator (RSCG) examples. The system transforms individual RSCG projects into structured documentation with code examples and cross-referenced content with a searchable website and code example exports.
The RSCG_Examples repository is a comprehensive documentation system that automatically processes and showcases 260 Roslyn Source Code Generator (RSCG) examples. The system transforms individual RSCG projects into structured documentation with code examples and cross-referenced content with a searchable website and code example exports.

This system serves as both a learning resource for .NET developers interested in source generators and an automated pipeline for maintaining up-to-date documentation about the RSCG ecosystem

## Latest Update : 2026-04-01 => 01 April 2026
## Latest Update : 2026-04-02 => 02 April 2026

If you want to see examples with code, please click ***[List V2](https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG)***

Expand All @@ -24,8 +24,30 @@ If you want to be notified each time I add a new RSCG example , please click htt

## Content

Those are the 259 Roslyn Source Code Generators that I have tested you can see and download source code example.
Those are the 260 Roslyn Source Code Generators that I have tested you can see and download source code example.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Fix wording for the content summary sentence.

Line 27 reads awkwardly and is hard to parse. Suggested rewrite:

✏️ Proposed wording
-Those are the 260 Roslyn Source Code Generators that I have tested you can see and download source code example.
+These are the 260 Roslyn Source Code Generators that I have tested; you can view and download source code examples.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Those are the 260 Roslyn Source Code Generators that I have tested you can see and download source code example.
These are the 260 Roslyn Source Code Generators that I have tested; you can view and download source code examples.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.md` at line 27, Rewrite the awkward summary sentence on line 27 to
clear, grammatical English; replace "Those are the 260 Roslyn Source Code
Generators that I have tested you can see and download source code example."
with a concise sentence such as "These are the 260 Roslyn source-code generators
I tested; you can view and download example source code." Locate the sentence in
README.md and update the text accordingly, preserving intent (260 generators,
tested, examples available) and fixing punctuation and capitalization.

( including 16 from Microsoft )
### 260. [AssemblyMetadata](https://ignatandrei.github.io/RSCG_Examples/v2/docs/AssemblyMetadata) , in the [EnhancementProject](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enhancementproject) category

Generated on : 2026-04-02 => 02 April 2026

<details>
<summary>Expand</summary>



Author: Benjamin Abt

Assembly Metadata Information

Nuget: [https://www.nuget.org/packages/AssemblyMetadata/](https://www.nuget.org/packages/AssemblyMetadata/)


Link: [https://ignatandrei.github.io/RSCG_Examples/v2/docs/AssemblyMetadata](https://ignatandrei.github.io/RSCG_Examples/v2/docs/AssemblyMetadata)

Source: [https://github.com/BenjaminAbt/AssemblyMetadata](https://github.com/BenjaminAbt/AssemblyMetadata)

</details>

### 259. [TypedPaths](https://ignatandrei.github.io/RSCG_Examples/v2/docs/TypedPaths) , in the [FilesToCode](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#filestocode) category

Generated on : 2026-04-01 => 01 April 2026
Expand Down
2 changes: 1 addition & 1 deletion later.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Just later

## Latest Update : 2026-04-01 => 01 April 2026
## Latest Update : 2026-04-02 => 02 April 2026



Expand Down
30 changes: 30 additions & 0 deletions v2/.tours/AssemblyMetadata.tour
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

{
"$schema": "https://aka.ms/codetour-schema",
"title": "AssemblyMetadata",
"steps":
[
{
"file": "rscg_examples/AssemblyMetadata/src/DemoMeta/DemoMeta.csproj",
"description": "First, we add Nuget [AssemblyMetadata](https://www.nuget.org/packages/AssemblyMetadata/) in csproj ",
"pattern": "AssemblyMetadata"
}

,{
"file": "rscg_examples/AssemblyMetadata/src/DemoMeta/Program.cs",
"description": "File Program.cs \r\n>> dotnet run --project rscg_examples/AssemblyMetadata/src/DemoMeta/DemoMeta.csproj ",
"pattern": "this is the code"
}


,{
"file": "rscg_examples/AssemblyMetadata/src/DemoMeta/obj/GX/BenjaminAbt.AssemblyMetadata/BenjaminAbt.AssemblyMetadata.AssemblyMetadataGenerator/AssemblyMetadataInfo.gen.cs",
"description": "Generated File 1 from 1 : AssemblyMetadataInfo.gen.cs ",
"line": 1
}

],

"ref": "main"

}
1 change: 1 addition & 0 deletions v2/Generator/all.csv
Original file line number Diff line number Diff line change
Expand Up @@ -258,3 +258,4 @@ Nr,Key,Source,Category
257,Pekspro.DataAnnotationValuesExtractor, https://github.com/pekspro/DataAnnotationValuesExtractor,EnhancementClass
258,REslava.ResultFlow, https://github.com/reslava/nuget-package-reslava-result/,Documentation
259,TypedPaths, https://github.com/AlexChim1231/TypedPaths/,FilesToCode
260,AssemblyMetadata, https://github.com/BenjaminAbt/AssemblyMetadata,EnhancementProject
6 changes: 6 additions & 0 deletions v2/RSCGExamplesData/GeneratorDataRec.json
Original file line number Diff line number Diff line change
Expand Up @@ -1570,5 +1570,11 @@
"Category": 8,
"dtStart": "2026-04-01T00:00:00",
"show": true
},
{
"ID":"AssemblyMetadata",
"Category": 1,
"dtStart": "2026-04-02T00:00:00",
"show": true
}
]
53 changes: 53 additions & 0 deletions v2/book/examples/AssemblyMetadata.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@

<h1>RSCG nr 260 : AssemblyMetadata</h1>

<h2>Info</h2>
Nuget : <a href="https://www.nuget.org/packages/AssemblyMetadata/" target="_blank">https://www.nuget.org/packages/AssemblyMetadata/</a>

<p>You can find more details at : <a href="https://github.com/BenjaminAbt/AssemblyMetadata" target="_blank"> https://github.com/BenjaminAbt/AssemblyMetadata</a></p>

<p>Author :Benjamin Abt</p>

<p>Source: <a href="https://github.com/BenjaminAbt/AssemblyMetadata" target="_blank">https://github.com/BenjaminAbt/AssemblyMetadata</a> </p>

<h2>About</h2>

Generate date time based metadata for assemblies.

<h2>
How to use
</h2>
<h3>
Add reference to the <a href="https://www.nuget.org/packages/AssemblyMetadata/" target="_blank">AssemblyMetadata</a> in the csproj
</h3>
<img src="images/AssemblyMetadata/DemoMeta.csproj.png" width="580" height="580" />

<h3>This was for me the <b>starting</b> code</h3>

<br />
I have <b>coded</b> the file Program.cs
<br />
<img src="images/AssemblyMetadata/csFiles/Program.cs.png" width="580" height="580" />
<hr />
<h3>And here are the <i>generated</i> files</h3>

<br />
The file <i>generated</i> is AssemblyMetadataInfo.gen.cs
<br />
<img src="images/AssemblyMetadata/generated/AssemblyMetadataInfo.gen.cs.png" width="580" height="580" />

<p>
You can download the code and this page as pdf from
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/AssemblyMetadata'>
https://ignatandrei.github.io/RSCG_Examples/v2/docs/AssemblyMetadata
</a>
</p>


<p>
You can see the whole list at
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG'>
https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG
</a>
</p>

4 changes: 2 additions & 2 deletions v2/book/examples/TypedPaths.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h1>RSCG nr 259 : TypedPaths</h1>

<h2>Info</h2>
Nuget : <a href="https://www.nuget.org/packages/TypedPaths/" target="_blank">https://www.nuget.org/packages/TypedPaths/</a>
Nuget : <a href="https://www.nuget.org/packages/TypedPaths.Generator/" target="_blank">https://www.nuget.org/packages/TypedPaths.Generator/</a>

<p>You can find more details at : <a href="https://github.com/AlexChim1231/TypedPaths/" target="_blank"> https://github.com/AlexChim1231/TypedPaths/</a></p>

Expand All @@ -18,7 +18,7 @@ <h2>
How to use
</h2>
<h3>
Add reference to the <a href="https://www.nuget.org/packages/TypedPaths/" target="_blank">TypedPaths</a> in the csproj
Add reference to the <a href="https://www.nuget.org/packages/TypedPaths.Generator/" target="_blank">TypedPaths</a> in the csproj
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Align package label with the linked package ID.

The link targets TypedPaths.Generator, but the displayed name is TypedPaths. Please make the anchor text explicit (TypedPaths.Generator) to avoid install confusion.

✏️ Proposed doc fix
-    Add reference to the  <a href="https://www.nuget.org/packages/TypedPaths.Generator/" target="_blank">TypedPaths</a> in the csproj
+    Add reference to <a href="https://www.nuget.org/packages/TypedPaths.Generator/" target="_blank">TypedPaths.Generator</a> in the csproj
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Add reference to the <a href="https://www.nuget.org/packages/TypedPaths.Generator/" target="_blank">TypedPaths</a> in the csproj
Add reference to <a href="https://www.nuget.org/packages/TypedPaths.Generator/" target="_blank">TypedPaths.Generator</a> in the csproj
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@v2/book/examples/TypedPaths.html` at line 21, Update the anchor text so it
matches the package ID shown by the href: change the displayed link label from
"TypedPaths" to "TypedPaths.Generator" in the HTML anchor element (the <a
href="https://www.nuget.org/packages/TypedPaths.Generator/"
target="_blank">…</a>) so the visible name aligns with the linked package and
avoids install confusion.

</h3>
<img src="images/TypedPaths/FolderToCode.csproj.png" width="580" height="580" />

Expand Down
6 changes: 5 additions & 1 deletion v2/book/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</head>
<body>
<h1>
This is the list of 259 RSCG with examples =>
This is the list of 260 RSCG with examples =>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Escape special character to satisfy HTML lint.

Line 20 uses a raw > character, which triggers spec-char-escape. Replace it with &gt;.

💡 Proposed fix
-This is the list of 260 RSCG with examples =>
+This is the list of 260 RSCG with examples =&gt;
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
This is the list of 260 RSCG with examples =>
This is the list of 260 RSCG with examples =&gt;
🧰 Tools
🪛 HTMLHint (1.9.2)

[error] 20-20: Special characters must be escaped : [ > ].

(spec-char-escape)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@v2/book/list.html` at line 20, Replace the raw '>' character in the string
"This is the list of 260 RSCG with examples =>" with the escaped entity '&gt;'
to satisfy HTML lint; update the text node in v2/book/list.html (the line
containing that exact snippet) so the output reads "This is the list of 260 RSCG
with examples =&gt;".

</h1>

<table >
Expand Down Expand Up @@ -1062,6 +1062,10 @@ <h1>
<td>259</td>
<td><a href="examples/TypedPaths.html">TypedPaths</a></td>
</tr>
<tr>
<td>260</td>
<td><a href="examples/AssemblyMetadata.html">AssemblyMetadata</a></td>
</tr>
</table>


Expand Down
1 change: 1 addition & 0 deletions v2/book/pandocHTML.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ input-files:
- examples/Pekspro.DataAnnotationValuesExtractor.html
- examples/REslava.ResultFlow.html
- examples/TypedPaths.html
- examples/AssemblyMetadata.html

# or you may use input-file: with a single value
# defaults:
Expand Down
22 changes: 22 additions & 0 deletions v2/rscg_examples/AssemblyMetadata/description.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"generator":{
"name":"AssemblyMetadata",
"nuget":[
"https://www.nuget.org/packages/AssemblyMetadata/"
],
"link":"https://github.com/BenjaminAbt/AssemblyMetadata",
"author":"Benjamin Abt",
"source":"https://github.com/BenjaminAbt/AssemblyMetadata"
},
"data":{
"goodFor":["Generate date time based metadata for assemblies."],
"csprojDemo":"DemoMeta.csproj",
"csFiles":["Program.cs"],
"excludeDirectoryGenerated":[""],
"includeAdditionalFiles":[""]
},
"links":{
"blog":"",
"video":""
}
}
1 change: 1 addition & 0 deletions v2/rscg_examples/AssemblyMetadata/nuget.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Assembly Metadata Information
Loading
Loading