Skip to content
Merged

frist #465

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 - 261 Examples of Roslyn Source Code Generators / 16 created by Microsoft /
# RSCG - 262 Examples of Roslyn Source Code Generators / 16 created by Microsoft /

The RSCG_Examples repository is a comprehensive documentation system that automatically processes and showcases 261 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 262 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-03 => 03 April 2026
## Latest Update : 2026-04-04 => 04 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 261 Roslyn Source Code Generators that I have tested you can see and download source code example.
Those are the 262 Roslyn Source Code Generators that I have tested you can see and download source code example.
( including 16 from Microsoft )
### 262. [SvgIconGenerator](https://ignatandrei.github.io/RSCG_Examples/v2/docs/SvgIconGenerator) , in the [FilesToCode](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#filestocode) category

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

<details>
<summary>Expand</summary>



Author: Matt Schneeberger

SVG icon source generator

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


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

Source: [https://github.com/helluvamatt/SvgIconGenerator](https://github.com/helluvamatt/SvgIconGenerator)

</details>

### 261. [NLog.Extensions.ThisClass](https://ignatandrei.github.io/RSCG_Examples/v2/docs/NLog.Extensions.ThisClass) , in the [EnhancementClass](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enhancementclass) category

Generated on : 2026-04-03 => 03 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-03 => 03 April 2026
## Latest Update : 2026-04-04 => 04 April 2026



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

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

,{
"file": "rscg_examples/SvgIconGenerator/src/DemoSvg/Icons.cs",
"description": "File Icons.cs ",
"pattern": "this is the code"
}

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


,{
"file": "rscg_examples/SvgIconGenerator/src/DemoSvg/obj/GX/SvgIconGenerator/SvgIconGenerator.IconGenerator/MyIcons.g.cs",
"description": "Generated File 3 from 3 : MyIcons.g.cs ",
"line": 1
}

,{
"file": "rscg_examples/SvgIconGenerator/src/DemoSvg/obj/GX/SvgIconGenerator/SvgIconGenerator.IconGenerator/IconDto.g.cs",
"description": "Generated File 2 from 3 : IconDto.g.cs ",
"line": 1
}

,{
"file": "rscg_examples/SvgIconGenerator/src/DemoSvg/obj/GX/SvgIconGenerator/SvgIconGenerator.IconGenerator/GenerateIconsAttribute.g.cs",
"description": "Generated File 1 from 3 : GenerateIconsAttribute.g.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 @@ -260,3 +260,4 @@ Nr,Key,Source,Category
259,TypedPaths, https://github.com/AlexChim1231/TypedPaths/,FilesToCode
260,AssemblyMetadata, https://github.com/BenjaminAbt/AssemblyMetadata,EnhancementProject
261,NLog.Extensions.ThisClass, https://github.com/trympet/ThisClass,EnhancementClass
262,SvgIconGenerator, https://github.com/helluvamatt/SvgIconGenerator,FilesToCode
6 changes: 6 additions & 0 deletions v2/RSCGExamplesData/GeneratorDataRec.json
Original file line number Diff line number Diff line change
Expand Up @@ -1582,5 +1582,11 @@
"Category": 5,
"dtStart": "2026-04-03T00:00:00",
"show": true
},
{
"ID":"SvgIconGenerator",
"Category": 8,
"dtStart": "2026-04-04T00:00:00",
"show": true
}
]
69 changes: 69 additions & 0 deletions v2/book/examples/SvgIconGenerator.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@

<h1>RSCG nr 262 : SvgIconGenerator</h1>

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

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

<p>Author :Matt Schneeberger</p>

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

<h2>About</h2>

Generating classes from SVG icons to be used in C# projects.

<h2>
How to use
</h2>
<h3>
Add reference to the <a href="https://www.nuget.org/packages/SvgIconGenerator/" target="_blank">SvgIconGenerator</a> in the csproj
</h3>
<img src="images/SvgIconGenerator/DemoSvg.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/SvgIconGenerator/csFiles/Program.cs.png" width="580" height="580" />
<hr />

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

<br />
The file <i>generated</i> is GenerateIconsAttribute.g.cs
<br />
<img src="images/SvgIconGenerator/generated/GenerateIconsAttribute.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is IconDto.g.cs
<br />
<img src="images/SvgIconGenerator/generated/IconDto.g.cs.png" width="580" height="580" />

<br />
The file <i>generated</i> is MyIcons.g.cs
<br />
<img src="images/SvgIconGenerator/generated/MyIcons.g.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/SvgIconGenerator'>
https://ignatandrei.github.io/RSCG_Examples/v2/docs/SvgIconGenerator
</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>

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 261 RSCG with examples =>
This is the list of 262 RSCG with examples =>
</h1>

<table >
Expand Down Expand Up @@ -1070,6 +1070,10 @@ <h1>
<td>261</td>
<td><a href="examples/NLog.Extensions.ThisClass.html">NLog.Extensions.ThisClass</a></td>
</tr>
<tr>
<td>262</td>
<td><a href="examples/SvgIconGenerator.html">SvgIconGenerator</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 @@ -275,6 +275,7 @@ input-files:
- examples/TypedPaths.html
- examples/AssemblyMetadata.html
- examples/NLog.Extensions.ThisClass.html
- examples/SvgIconGenerator.html

# or you may use input-file: with a single value
# defaults:
Expand Down
22 changes: 22 additions & 0 deletions v2/rscg_examples/SvgIconGenerator/description.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"generator":{
"name":"SvgIconGenerator",
"nuget":[
"https://www.nuget.org/packages/SvgIconGenerator/"
],
"link":"https://github.com/helluvamatt/SvgIconGenerator",
"author":"Matt Schneeberger",
"source":"https://github.com/helluvamatt/SvgIconGenerator"
},
"data":{
"goodFor":["Generating classes from SVG icons to be used in C# projects."],
"csprojDemo":"DemoSvg.csproj",
"csFiles":["Program.cs","Icons.cs"],
"excludeDirectoryGenerated":[""],
"includeAdditionalFiles":[""]
},
"links":{
"blog":"",
"video":""
}
}
1 change: 1 addition & 0 deletions v2/rscg_examples/SvgIconGenerator/nuget.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SVG icon source generator
Loading
Loading