Skip to content

Commit d7e46d2

Browse files
authored
Merge pull request #465 from ignatandrei/SvgIconGenerator
frist
2 parents b040910 + 0783aed commit d7e46d2

File tree

29 files changed

+1104
-22
lines changed

29 files changed

+1104
-22
lines changed

README.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# RSCG - 261 Examples of Roslyn Source Code Generators / 16 created by Microsoft /
1+
# RSCG - 262 Examples of Roslyn Source Code Generators / 16 created by Microsoft /
22

3-
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.
3+
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.
44

55
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
66

7-
## Latest Update : 2026-04-03 => 03 April 2026
7+
## Latest Update : 2026-04-04 => 04 April 2026
88

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

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

2525
## Content
2626

27-
Those are the 261 Roslyn Source Code Generators that I have tested you can see and download source code example.
27+
Those are the 262 Roslyn Source Code Generators that I have tested you can see and download source code example.
2828
( including 16 from Microsoft )
29+
### 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
30+
31+
Generated on : 2026-04-04 => 04 April 2026
32+
33+
<details>
34+
<summary>Expand</summary>
35+
36+
37+
38+
Author: Matt Schneeberger
39+
40+
SVG icon source generator
41+
42+
Nuget: [https://www.nuget.org/packages/SvgIconGenerator/](https://www.nuget.org/packages/SvgIconGenerator/)
43+
44+
45+
Link: [https://ignatandrei.github.io/RSCG_Examples/v2/docs/SvgIconGenerator](https://ignatandrei.github.io/RSCG_Examples/v2/docs/SvgIconGenerator)
46+
47+
Source: [https://github.com/helluvamatt/SvgIconGenerator](https://github.com/helluvamatt/SvgIconGenerator)
48+
49+
</details>
50+
2951
### 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
3052

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

later.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Just later
22

3-
## Latest Update : 2026-04-03 => 03 April 2026
3+
## Latest Update : 2026-04-04 => 04 April 2026
44

55

66

v2/.tours/SvgIconGenerator.tour

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
2+
{
3+
"$schema": "https://aka.ms/codetour-schema",
4+
"title": "SvgIconGenerator",
5+
"steps":
6+
[
7+
{
8+
"file": "rscg_examples/SvgIconGenerator/src/DemoSvg/DemoSvg.csproj",
9+
"description": "First, we add Nuget [SvgIconGenerator](https://www.nuget.org/packages/SvgIconGenerator/) in csproj ",
10+
"pattern": "SvgIconGenerator"
11+
}
12+
13+
,{
14+
"file": "rscg_examples/SvgIconGenerator/src/DemoSvg/Icons.cs",
15+
"description": "File Icons.cs ",
16+
"pattern": "this is the code"
17+
}
18+
19+
,{
20+
"file": "rscg_examples/SvgIconGenerator/src/DemoSvg/Program.cs",
21+
"description": "File Program.cs \r\n>> dotnet run --project rscg_examples/SvgIconGenerator/src/DemoSvg/DemoSvg.csproj ",
22+
"pattern": "this is the code"
23+
}
24+
25+
26+
,{
27+
"file": "rscg_examples/SvgIconGenerator/src/DemoSvg/obj/GX/SvgIconGenerator/SvgIconGenerator.IconGenerator/MyIcons.g.cs",
28+
"description": "Generated File 3 from 3 : MyIcons.g.cs ",
29+
"line": 1
30+
}
31+
32+
,{
33+
"file": "rscg_examples/SvgIconGenerator/src/DemoSvg/obj/GX/SvgIconGenerator/SvgIconGenerator.IconGenerator/IconDto.g.cs",
34+
"description": "Generated File 2 from 3 : IconDto.g.cs ",
35+
"line": 1
36+
}
37+
38+
,{
39+
"file": "rscg_examples/SvgIconGenerator/src/DemoSvg/obj/GX/SvgIconGenerator/SvgIconGenerator.IconGenerator/GenerateIconsAttribute.g.cs",
40+
"description": "Generated File 1 from 3 : GenerateIconsAttribute.g.cs ",
41+
"line": 1
42+
}
43+
44+
],
45+
46+
"ref": "main"
47+
48+
}

v2/Generator/all.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,3 +260,4 @@ Nr,Key,Source,Category
260260
259,TypedPaths, https://github.com/AlexChim1231/TypedPaths/,FilesToCode
261261
260,AssemblyMetadata, https://github.com/BenjaminAbt/AssemblyMetadata,EnhancementProject
262262
261,NLog.Extensions.ThisClass, https://github.com/trympet/ThisClass,EnhancementClass
263+
262,SvgIconGenerator, https://github.com/helluvamatt/SvgIconGenerator,FilesToCode

v2/RSCGExamplesData/GeneratorDataRec.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,5 +1582,11 @@
15821582
"Category": 5,
15831583
"dtStart": "2026-04-03T00:00:00",
15841584
"show": true
1585+
},
1586+
{
1587+
"ID":"SvgIconGenerator",
1588+
"Category": 8,
1589+
"dtStart": "2026-04-04T00:00:00",
1590+
"show": true
15851591
}
15861592
]
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
2+
<h1>RSCG nr 262 : SvgIconGenerator</h1>
3+
4+
<h2>Info</h2>
5+
Nuget : <a href="https://www.nuget.org/packages/SvgIconGenerator/" target="_blank">https://www.nuget.org/packages/SvgIconGenerator/</a>
6+
7+
<p>You can find more details at : <a href="https://github.com/helluvamatt/SvgIconGenerator" target="_blank"> https://github.com/helluvamatt/SvgIconGenerator</a></p>
8+
9+
<p>Author :Matt Schneeberger</p>
10+
11+
<p>Source: <a href="https://github.com/helluvamatt/SvgIconGenerator" target="_blank">https://github.com/helluvamatt/SvgIconGenerator</a> </p>
12+
13+
<h2>About</h2>
14+
15+
Generating classes from SVG icons to be used in C# projects.
16+
17+
<h2>
18+
How to use
19+
</h2>
20+
<h3>
21+
Add reference to the <a href="https://www.nuget.org/packages/SvgIconGenerator/" target="_blank">SvgIconGenerator</a> in the csproj
22+
</h3>
23+
<img src="images/SvgIconGenerator/DemoSvg.csproj.png" width="580" height="580" />
24+
25+
<h3>This was for me the <b>starting</b> code</h3>
26+
27+
<br />
28+
I have <b>coded</b> the file Program.cs
29+
<br />
30+
<img src="images/SvgIconGenerator/csFiles/Program.cs.png" width="580" height="580" />
31+
<hr />
32+
33+
<br />
34+
I have <b>coded</b> the file Icons.cs
35+
<br />
36+
<img src="images/SvgIconGenerator/csFiles/Icons.cs.png" width="580" height="580" />
37+
<hr />
38+
<h3>And here are the <i>generated</i> files</h3>
39+
40+
<br />
41+
The file <i>generated</i> is GenerateIconsAttribute.g.cs
42+
<br />
43+
<img src="images/SvgIconGenerator/generated/GenerateIconsAttribute.g.cs.png" width="580" height="580" />
44+
45+
<br />
46+
The file <i>generated</i> is IconDto.g.cs
47+
<br />
48+
<img src="images/SvgIconGenerator/generated/IconDto.g.cs.png" width="580" height="580" />
49+
50+
<br />
51+
The file <i>generated</i> is MyIcons.g.cs
52+
<br />
53+
<img src="images/SvgIconGenerator/generated/MyIcons.g.cs.png" width="580" height="580" />
54+
55+
<p>
56+
You can download the code and this page as pdf from
57+
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/SvgIconGenerator'>
58+
https://ignatandrei.github.io/RSCG_Examples/v2/docs/SvgIconGenerator
59+
</a>
60+
</p>
61+
62+
63+
<p>
64+
You can see the whole list at
65+
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG'>
66+
https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG
67+
</a>
68+
</p>
69+

v2/book/list.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</head>
1818
<body>
1919
<h1>
20-
This is the list of 261 RSCG with examples =>
20+
This is the list of 262 RSCG with examples =>
2121
</h1>
2222

2323
<table >
@@ -1070,6 +1070,10 @@ <h1>
10701070
<td>261</td>
10711071
<td><a href="examples/NLog.Extensions.ThisClass.html">NLog.Extensions.ThisClass</a></td>
10721072
</tr>
1073+
<tr>
1074+
<td>262</td>
1075+
<td><a href="examples/SvgIconGenerator.html">SvgIconGenerator</a></td>
1076+
</tr>
10731077
</table>
10741078

10751079

v2/book/pandocHTML.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ input-files:
275275
- examples/TypedPaths.html
276276
- examples/AssemblyMetadata.html
277277
- examples/NLog.Extensions.ThisClass.html
278+
- examples/SvgIconGenerator.html
278279

279280
# or you may use input-file: with a single value
280281
# defaults:
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"generator":{
3+
"name":"SvgIconGenerator",
4+
"nuget":[
5+
"https://www.nuget.org/packages/SvgIconGenerator/"
6+
],
7+
"link":"https://github.com/helluvamatt/SvgIconGenerator",
8+
"author":"Matt Schneeberger",
9+
"source":"https://github.com/helluvamatt/SvgIconGenerator"
10+
},
11+
"data":{
12+
"goodFor":["Generating classes from SVG icons to be used in C# projects."],
13+
"csprojDemo":"DemoSvg.csproj",
14+
"csFiles":["Program.cs","Icons.cs"],
15+
"excludeDirectoryGenerated":[""],
16+
"includeAdditionalFiles":[""]
17+
},
18+
"links":{
19+
"blog":"",
20+
"video":""
21+
}
22+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SVG icon source generator

0 commit comments

Comments
 (0)