Skip to content

Commit 00d5b11

Browse files
authored
Merge pull request #426 from ignatandrei/419-httpsgithubcomtyevcotecliissues14event-21057085915
2 parents 87ea859 + eeb4b7c commit 00d5b11

File tree

107 files changed

+2288
-732
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+2288
-732
lines changed

README.md

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

3-
The RSCG_Examples repository is a comprehensive documentation system that automatically processes and showcases 237 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 238 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 : 2025-11-06 => 06 November 2025
7+
## Latest Update : 2025-11-07 => 07 November 2025
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 237 Roslyn Source Code Generators that I have tested you can see and download source code example.
27+
Those are the 238 Roslyn Source Code Generators that I have tested you can see and download source code example.
2828
( including 15 from Microsoft )
29+
### 238. [TeCLI](https://ignatandrei.github.io/RSCG_Examples/v2/docs/TeCLI) , in the [CommandLine](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#commandline) category
30+
31+
Generated on : 2025-11-07 => 07 November 2025
32+
33+
<details>
34+
<summary>Expand</summary>
35+
36+
37+
38+
Author: Tyler Coles
39+
40+
C# CLI source generator tool
41+
42+
Nuget: [https://www.nuget.org/packages/TeCLI/](https://www.nuget.org/packages/TeCLI/)
43+
44+
45+
Link: [https://ignatandrei.github.io/RSCG_Examples/v2/docs/TeCLI](https://ignatandrei.github.io/RSCG_Examples/v2/docs/TeCLI)
46+
47+
Source: [https://github.com/tyevco/TeCLI](https://github.com/tyevco/TeCLI)
48+
49+
</details>
50+
2951
### 237. [Program](https://ignatandrei.github.io/RSCG_Examples/v2/docs/Program) , in the [EnhancementClass](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#enhancementclass) category
3052

3153
Generated on : 2025-11-06 => 06 November 2025

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 : 2025-11-06 => 06 November 2025
3+
## Latest Update : 2025-11-07 => 07 November 2025
44

55

66

v2/.tours/TeCLI.tour

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
2+
{
3+
"$schema": "https://aka.ms/codetour-schema",
4+
"title": "TeCLI",
5+
"steps":
6+
[
7+
{
8+
"file": "rscg_examples/TeCLI/src/ConsoleDemo/ConsoleDemo.csproj",
9+
"description": "First, we add Nuget [TeCLI](https://www.nuget.org/packages/TeCLI/) in csproj ",
10+
"pattern": "TeCLI"
11+
}
12+
13+
,{
14+
"file": "rscg_examples/TeCLI/src/ConsoleDemo/CmdForSum.cs",
15+
"description": "File CmdForSum.cs ",
16+
"pattern": "this is the code"
17+
}
18+
19+
,{
20+
"file": "rscg_examples/TeCLI/src/ConsoleDemo/Program.cs",
21+
"description": "File Program.cs \r\n>> dotnet run --project rscg_examples/TeCLI/src/ConsoleDemo/ConsoleDemo.csproj ",
22+
"pattern": "this is the code"
23+
}
24+
25+
26+
,{
27+
"file": "rscg_examples/TeCLI/src/ConsoleDemo/obj/GX/TeCLI.Extensions.DependencyInjection/TeCLI.Extensions.DependencyInjection.Generators.DependencyInjectionInvokerGenerator/CommandDispatcher.Registrations.cs",
28+
"description": "Generated File 6 from 6 : CommandDispatcher.Registrations.cs ",
29+
"line": 1
30+
}
31+
32+
,{
33+
"file": "rscg_examples/TeCLI/src/ConsoleDemo/obj/GX/TeCLI.Extensions.DependencyInjection/TeCLI.Extensions.DependencyInjection.Generators.DependencyInjectionInvokerGenerator/CommandDispatcher.Invoker.cs",
34+
"description": "Generated File 5 from 6 : CommandDispatcher.Invoker.cs ",
35+
"line": 1
36+
}
37+
38+
,{
39+
"file": "rscg_examples/TeCLI/src/ConsoleDemo/obj/GX/TeCLI/TeCLI.Generators.CommandLineArgsGenerator/CommandDispatcher.Documentation.cs",
40+
"description": "Generated File 4 from 6 : CommandDispatcher.Documentation.cs ",
41+
"line": 1
42+
}
43+
44+
,{
45+
"file": "rscg_examples/TeCLI/src/ConsoleDemo/obj/GX/TeCLI/TeCLI.Generators.CommandLineArgsGenerator/CommandDispatcher.cs",
46+
"description": "Generated File 3 from 6 : CommandDispatcher.cs ",
47+
"line": 1
48+
}
49+
50+
,{
51+
"file": "rscg_examples/TeCLI/src/ConsoleDemo/obj/GX/TeCLI/TeCLI.Generators.CommandLineArgsGenerator/CommandDispatcher.Command.CmdForSum.Documentation.cs",
52+
"description": "Generated File 2 from 6 : CommandDispatcher.Command.CmdForSum.Documentation.cs ",
53+
"line": 1
54+
}
55+
56+
,{
57+
"file": "rscg_examples/TeCLI/src/ConsoleDemo/obj/GX/TeCLI/TeCLI.Generators.CommandLineArgsGenerator/CommandDispatcher.Command.CmdForSum.cs",
58+
"description": "Generated File 1 from 6 : CommandDispatcher.Command.CmdForSum.cs ",
59+
"line": 1
60+
}
61+
62+
],
63+
64+
"ref": "main"
65+
66+
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@inherits RazorBlade.PlainTextTemplate<KeyValuePair<string,Description[]>>;
1+
@inherits RazorBlade.PlainTextTemplate<KeyValuePair<string,Description[]>>
22
<h1>@Model.Key</h1>
33

44
Number RSCG: @Model.Value.Count()
@@ -9,8 +9,8 @@ Number RSCG: @Model.Value.Count()
99
@foreach (var rscgV in values)
1010
{
1111
string data = $"[{rscgV.Generator?.Name}](/docs/{rscgV.Generator?.Name})";
12-
<text>
13-
@(i++) @data
14-
</text>
12+
<text>
13+
@(i++) @data @rscgV.Generator?.MarkDownNugetDownloads @(rscgV.Generator?.MarkDownStars) @(rscgV.generatedDate.ToString("yyyy-MM-dd"))
14+
</text>
1515
}
1616

v2/Generator/InTheSameCategory.cshtml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@inherits RazorBlade.PlainTextTemplate<KeyValuePair<string,Description[]>>;
1+
@inherits RazorBlade.PlainTextTemplate<KeyValuePair<string,Description[]>>
22
@{
33
string linkCategory = $"[{Model.Key}](/docs/Categories/{Model.Key})";
44
}
@@ -10,8 +10,10 @@
1010
@foreach (var rscgV in values)
1111
{
1212
string data = $"[{rscgV.Generator?.Name}](/docs/{rscgV.Generator?.Name})";
13+
string packageName = rscgV.Generator?.NugetFirst ?? "";
14+
1315
<text>
14-
@(i++) @data
16+
@(i++) @data @rscgV.Generator?.MarkDownNugetDownloads @(rscgV.Generator?.MarkDownStars) @(rscgV.generatedDate.ToString("yyyy-MM-dd"))
1517
</text>
1618
}
1719

v2/Generator/MultiGeneratorV2.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ public string[] SourceNoRSCG()
124124
text = text.Replace("(README_IMAGE.png)", $"({d.Generator!.Source}/README_IMAGE.png)");
125125
text = text.Replace("[this]()", $"[this]({d.Generator!.Source})");
126126
text = text.Replace("(README", $"({d.Generator!.Source}/README");
127+
128+
text = text.Replace("(COVERAGE", $"({d.Generator!.Source}/COVERAGE");
129+
text = text.Replace("(TeCLI.", $"({d.Generator!.Source}/TeCLI.");
130+
127131
text = text.Replace("(integ-tests/", $"({d.Generator!.Source}/integ-tests/");
128132
text = text.Replace("(./samples", $"({d.Generator!.Source}/samples");
129133
text = text.Replace("(./tests", $"({d.Generator!.Source}/tests");

v2/Generator/all.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,3 +236,4 @@ Nr,Key,Source,Category
236236
235,CsvCsharp, https://github.com/nuskey8/Csv-CSharp,Serializer
237237
236,Validly, https://github.com/Hookyns/validly,Validator
238238
237,Program, https://github.com/dotnet/aspnetcore/,EnhancementClass
239+
238,TeCLI, https://github.com/tyevco/TeCLI,CommandLine

v2/RSCGExamplesData/GeneratorDataRec.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,5 +1435,11 @@
14351435
"Category":5,
14361436
"dtStart": "2025-11-06T00:00:00",
14371437
"show": true
1438+
},
1439+
{
1440+
"ID":"TeCLI",
1441+
"Category":32,
1442+
"dtStart": "2025-11-07T00:00:00",
1443+
"show": true
14381444
}
14391445
]

v2/book/examples/TeCLI.html

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
2+
<h1>RSCG nr 238 : TeCLI</h1>
3+
4+
<h2>Info</h2>
5+
Nuget : <a href="https://www.nuget.org/packages/TeCLI/" target="_blank">https://www.nuget.org/packages/TeCLI/</a>
6+
7+
<p>You can find more details at : <a href="https://github.com/tyevco/TeCLI" target="_blank"> https://github.com/tyevco/TeCLI</a></p>
8+
9+
<p>Author :Tyler Coles</p>
10+
11+
<p>Source: <a href="https://github.com/tyevco/TeCLI" target="_blank">https://github.com/tyevco/TeCLI</a> </p>
12+
13+
<h2>About</h2>
14+
15+
Parse Command line arguments
16+
17+
<h2>
18+
How to use
19+
</h2>
20+
<h3>
21+
Add reference to the <a href="https://www.nuget.org/packages/TeCLI/" target="_blank">TeCLI</a> in the csproj
22+
</h3>
23+
<img src="images/TeCLI/ConsoleDemo.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/TeCLI/csFiles/Program.cs.png" width="580" height="580" />
31+
<hr />
32+
33+
<br />
34+
I have <b>coded</b> the file CmdForSum.cs
35+
<br />
36+
<img src="images/TeCLI/csFiles/CmdForSum.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 CommandDispatcher.Command.CmdForSum.cs
42+
<br />
43+
<img src="images/TeCLI/generated/CommandDispatcher.Command.CmdForSum.cs.png" width="580" height="580" />
44+
45+
<br />
46+
The file <i>generated</i> is CommandDispatcher.Command.CmdForSum.Documentation.cs
47+
<br />
48+
<img src="images/TeCLI/generated/CommandDispatcher.Command.CmdForSum.Documentation.cs.png" width="580" height="580" />
49+
50+
<br />
51+
The file <i>generated</i> is CommandDispatcher.cs
52+
<br />
53+
<img src="images/TeCLI/generated/CommandDispatcher.cs.png" width="580" height="580" />
54+
55+
<br />
56+
The file <i>generated</i> is CommandDispatcher.Documentation.cs
57+
<br />
58+
<img src="images/TeCLI/generated/CommandDispatcher.Documentation.cs.png" width="580" height="580" />
59+
60+
<br />
61+
The file <i>generated</i> is CommandDispatcher.Invoker.cs
62+
<br />
63+
<img src="images/TeCLI/generated/CommandDispatcher.Invoker.cs.png" width="580" height="580" />
64+
65+
<br />
66+
The file <i>generated</i> is CommandDispatcher.Registrations.cs
67+
<br />
68+
<img src="images/TeCLI/generated/CommandDispatcher.Registrations.cs.png" width="580" height="580" />
69+
70+
<p>
71+
You can download the code and this page as pdf from
72+
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/TeCLI'>
73+
https://ignatandrei.github.io/RSCG_Examples/v2/docs/TeCLI
74+
</a>
75+
</p>
76+
77+
78+
<p>
79+
You can see the whole list at
80+
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG'>
81+
https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG
82+
</a>
83+
</p>
84+

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 237 RSCG with examples =>
20+
This is the list of 238 RSCG with examples =>
2121
</h1>
2222

2323
<table >
@@ -974,6 +974,10 @@ <h1>
974974
<td>237</td>
975975
<td><a href="examples/Program.html">Program</a></td>
976976
</tr>
977+
<tr>
978+
<td>238</td>
979+
<td><a href="examples/TeCLI.html">TeCLI</a></td>
980+
</tr>
977981
</table>
978982

979983

0 commit comments

Comments
 (0)